feat(ci): add go vet and gofmt check to backend CI
INF-04: Backend CI now runs go vet and gofmt to catch issues early.
This commit is contained in:
parent
66149ff2f7
commit
13c21ac114
1 changed files with 6 additions and 0 deletions
6
.github/workflows/backend-ci.yml
vendored
6
.github/workflows/backend-ci.yml
vendored
|
|
@ -30,6 +30,12 @@ jobs:
|
|||
- name: Download deps
|
||||
run: go mod download
|
||||
|
||||
- name: Go vet and format check
|
||||
run: |
|
||||
go vet ./...
|
||||
test -z "$(gofmt -l .)"
|
||||
working-directory: veza-backend-api
|
||||
|
||||
- name: Run govulncheck
|
||||
run: |
|
||||
go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue