diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml index 9cdb4fb0..bde1060d 100644 --- a/.github/workflows/binaries.yml +++ b/.github/workflows/binaries.yml @@ -27,7 +27,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: stable # latest stable version of Go + go-version-file: "go.mod" - name: Build binary and create archive id: build diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3b47e444..e5fb73a5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,15 +13,14 @@ jobs: strategy: fail-fast: false matrix: - go: ['1.20', '1.19', '1.18', '1.17'] + go: ['1.20'] name: Go ${{ matrix.go }} - steps: - uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} @@ -34,14 +33,13 @@ jobs: runs-on: ubuntu-latest name: Root Tests - steps: - uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: - go-version-file: 'go.mod' + go-version: ${{ matrix.go }} - name: Test run: | @@ -57,12 +55,11 @@ jobs: runs-on: ubuntu-latest name: Format check - steps: - uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version-file: 'go.mod'