-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also run go vet and staticcheck in the pipeline + update some actions
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 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 |
---|---|---|
|
@@ -6,9 +6,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21' | ||
- name: Generate lexer/parser files with antlr | ||
|
@@ -17,6 +17,12 @@ jobs: | |
run: git diff | ||
- name: Make sure lexer/parser files were already up-to-date | ||
run: git diff-index --quiet HEAD | ||
- name: Run go vet | ||
run: go vet ./... | ||
- name: Run staticcheck | ||
run: | | ||
go install honnef.co/go/tools/cmd/[email protected] | ||
staticcheck ./... | ||
- name: Test | ||
run: go test -coverprofile='coverage.txt' -covermode=atomic ./... | ||
- name: Run govulncheck | ||
|