add vet command and step to pipeline

This commit is contained in:
Hector 2023-06-22 19:15:02 +01:00
parent 8d457da2b9
commit 8f7966cab3
2 changed files with 11 additions and 0 deletions

View File

@ -19,6 +19,12 @@ format:
script: script:
- make check/fmt - make check/fmt
vet:
extends: .go_template
stage: test
script:
- make vet
test: test:
extends: .go_template extends: .go_template
stage: test stage: test

View File

@ -20,6 +20,11 @@ update:
test: download test: download
go test ./... -v -race go test ./... -v -race
# Look for "suspicious constructs" in source code
.PHONY: vet
vet: download
go vet ./...
# Format code # Format code
.PHONY: fmt .PHONY: fmt
fmt: download fmt: download