From 91f53a74e88ad987c82ca42ea4dcc496fbe90a6b Mon Sep 17 00:00:00 2001 From: Brian Hnat Date: Tue, 19 Jul 2022 21:43:08 -0400 Subject: [PATCH] comment staticcheck (#150) --- .github/workflows/test-go.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-go.yml b/.github/workflows/test-go.yml index 4db7aa34..9fbf46ec 100644 --- a/.github/workflows/test-go.yml +++ b/.github/workflows/test-go.yml @@ -31,18 +31,20 @@ jobs: restore-keys: | ${{ runner.os }}-go-cache - name: Run gofmt + working-directory: go run: gofmt -d -e . 2>&1 | tee outfile && test -z "$(cat outfile)" && rm outfile - - name: Run staticcheck - if: matrix.go-version == '1.17.x' - run: | - bin/staticcheck_linux_amd64_2021.1.2 github.com/cucumber/ci-environment/go + # - name: Run staticcheck + # if: matrix.go-version == '1.17.x' + # run: | + # bin/staticcheck_linux_amd64_2021.1.2 github.com/cucumber/ci-environment/go - name: Run go vet - run: | - go vet ./... + working-directory: go + run: go vet ./... - name: Run go test - run: | - go test -coverprofile=coverage.txt -covermode=atomic ./... + working-directory: go + run: go test -coverprofile=coverage.txt -covermode=atomic ./... - name: Report on code coverage + working-directory: go if: matrix.go-version == '1.17.x' uses: codecov/codecov-action@v1 with: