diff --git a/.github/workflows/go-check.yml b/.github/workflows/go-check.yml index 3450132..cc65ce6 100644 --- a/.github/workflows/go-check.yml +++ b/.github/workflows/go-check.yml @@ -14,7 +14,7 @@ jobs: submodules: recursive - id: config uses: protocol/.github/.github/actions/read-config@master - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v3 with: go-version: 1.20.x - name: Run repo-specific setup @@ -23,7 +23,7 @@ jobs: - name: Install staticcheck run: go install honnef.co/go/tools/cmd/staticcheck@4970552d932f48b71485287748246cf3237cebdf # 2023.1 (v0.4.0) - name: Check that go.mod is tidy - uses: protocol/multiple-go-modules@v1.4 + uses: protocol/multiple-go-modules@v1.2 with: run: | go mod tidy @@ -42,18 +42,18 @@ jobs: fi - name: go vet if: success() || failure() # run this step even if the previous one failed - uses: protocol/multiple-go-modules@v1.4 + uses: protocol/multiple-go-modules@v1.2 with: run: go vet ./... - name: staticcheck if: success() || failure() # run this step even if the previous one failed - uses: protocol/multiple-go-modules@v1.4 + uses: protocol/multiple-go-modules@v1.2 with: run: | set -o pipefail staticcheck ./... | sed -e 's@\(.*\)\.go@./\1.go@g' - name: go generate - uses: protocol/multiple-go-modules@v1.4 + uses: protocol/multiple-go-modules@v1.2 if: (success() || failure()) && fromJSON(steps.config.outputs.json).gogenerate == true with: run: | diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index 2a68734..c5cb3ef 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -21,7 +21,7 @@ jobs: submodules: recursive - id: config uses: protocol/.github/.github/actions/read-config@master - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v3 with: go-version: ${{ matrix.go }} - name: Go information @@ -41,7 +41,7 @@ jobs: if: hashFiles('./.github/actions/go-test-setup') != '' - name: Run tests if: contains(fromJSON(steps.config.outputs.json).skipOSes, matrix.os) == false - uses: protocol/multiple-go-modules@v1.4 + uses: protocol/multiple-go-modules@v1.2 with: # Use -coverpkg=./..., so that we include cross-package coverage. # If package ./A imports ./B, and ./A's tests also cover ./B, @@ -52,7 +52,7 @@ jobs: if: matrix.os != 'macos' && fromJSON(steps.config.outputs.json).skip32bit != true && contains(fromJSON(steps.config.outputs.json).skipOSes, matrix.os) == false - uses: protocol/multiple-go-modules@v1.4 + uses: protocol/multiple-go-modules@v1.2 env: GOARCH: 386 with: @@ -63,14 +63,14 @@ jobs: # speed things up. Windows and OSX VMs are slow if: matrix.os == 'ubuntu' && contains(fromJSON(steps.config.outputs.json).skipOSes, matrix.os) == false - uses: protocol/multiple-go-modules@v1.4 + uses: protocol/multiple-go-modules@v1.2 with: run: go test -v -race ./... - name: Collect coverage files shell: bash run: echo "COVERAGES=$(find . -type f -name 'module-coverage.txt' | tr -s '\n' ',' | sed 's/,$//')" >> $GITHUB_ENV - name: Upload coverage to Codecov - uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 + uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1 with: files: '${{ env.COVERAGES }}' env_vars: OS=${{ matrix.os }}, GO=${{ matrix.go }}