Adds `go vet ./...` to the `test` task in Taskfile.yml to ensure static analysis is performed during testing.
13 lines
245 B
YAML
13 lines
245 B
YAML
version: '3'
|
|
|
|
tasks:
|
|
test:
|
|
desc: "Run all tests and generate a coverage report"
|
|
cmds:
|
|
- go vet ./...
|
|
- go test -v -coverprofile=coverage.out ./...
|
|
|
|
build:
|
|
desc: "Build the project"
|
|
cmds:
|
|
- go build -v ./...
|