-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use staticcheck GitHub Action (#563)
- Loading branch information
Showing
8 changed files
with
30 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,13 +29,13 @@ jobs: | |
- name: Run gofmt | ||
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/godog | ||
bin/staticcheck_linux_amd64_2021.1.2 github.com/cucumber/godog/cmd/godog | ||
# Disable for now because of failing checks | ||
# TODO: Add back in when fixes are made | ||
# bin/staticcheck_linux_amd64_2021.1.2 ./... | ||
if: matrix.go-version == '1.20.x' | ||
uses: dominikh/[email protected] | ||
with: | ||
version: "2023.1.3" | ||
install-go: false | ||
cache-key: ${{ matrix.go }} | ||
|
||
- name: Run go vet | ||
run: | | ||
go vet ./... | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters