Skip to content

Commit

Permalink
comment staticcheck (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
dumpsterfireproject committed Jul 20, 2022
1 parent 97951ca commit 91f53a7
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 91f53a7

Please sign in to comment.