From 139c9e7baa631b4ca878f1bf38c6d88cef2aeaa6 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Thu, 19 Aug 2021 11:20:01 -0700 Subject: [PATCH] actions: remove redundant gofmt and govet calls gofmt and govet are not handled by golangci-lint, which runs in a separate actions workflow. No need to run them here as well. --- .github/workflows/tests.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 52c2a5ecc3..275bb9e7fe 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,7 +21,7 @@ jobs: # is very little in the library that is platform specific - go-version: 1.x platform: windows-latest - + # only update test coverage stats with the most recent go version on linux - go-version: 1.x platform: ubuntu-latest @@ -38,13 +38,13 @@ jobs: with: go-version: ${{ matrix.go-version }} - uses: actions/checkout@v2 - + # Get values for cache paths to be used in later steps - id: cache-paths run: | echo "::set-output name=go-cache::$(go env GOCACHE)" echo "::set-output name=go-mod-cache::$(go env GOMODCACHE)" - + - name: Cache go modules uses: actions/cache@v2 with: @@ -54,17 +54,10 @@ jobs: key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-go- - - name: Run go fmt - if: runner.os != 'Windows' - run: diff -u <(echo -n) <(gofmt -d -s .) - - name: Ensure go generate produces a zero diff shell: bash run: go generate -x ./... && git diff --exit-code; code=$?; git checkout -- .; (exit $code) - - name: Run go vet - run: go vet ./... - - name: Run go test run: go test -v -race -coverprofile coverage.txt -covermode atomic ./...