Skip to content

Commit

Permalink
also run go vet and staticcheck in the pipeline + update some actions
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiEven committed Feb 15, 2024
1 parent 917c158 commit 31234d0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/onPush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 list ./... | grep -v parser | xargs 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
Expand Down

0 comments on commit 31234d0

Please sign in to comment.