Skip to content

Commit

Permalink
Merge pull request #5 from jvmistica/chore/add-vulncheck
Browse files Browse the repository at this point in the history
chore: add vulnerability checking
  • Loading branch information
jvmistica committed May 26, 2023
2 parents d0484eb + 9d5e3a5 commit 8507992
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: '1.20'

- name: build
run: go build -v ./...
run: make build

- name: test
run: go test -v ./...
run: make test

- name: install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest

- name: vulncheck
run: make vulncheck
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ build:

install:
@go install -v ./...

vulncheck:
@govulncheck ./...

0 comments on commit 8507992

Please sign in to comment.