ci: add go vet to test stage (!99)

* Add `go vet` to the test stage of the Gitlab CI/CD pipeline
* Fix issues raised by `go vet`

https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/-/merge_requests/99
This commit is contained in:
Hector committed 2023-06-22 18:24:15 +00:00
1 parent 8d457da2b9
commit b6cec83503
3 files changed
+13 -1

No files matched your search

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