peridot/vendor/github.com/stretchr/objx/Taskfile.yml

28 lines
435 B
YAML
Raw Permalink Normal View History

version: '3'
2022-07-07 20:11:50 +00:00
tasks:
default:
deps: [test]
lint:
desc: Checks code style
cmds:
- gofmt -d -s *.go
- go vet ./...
silent: true
lint-fix:
desc: Fixes code style
cmds:
- gofmt -w -s *.go
test:
desc: Runs go tests
cmds:
- go test -race ./...
test-coverage:
desc: Runs go tests and calculates test coverage
2022-07-07 20:11:50 +00:00
cmds:
- go test -race -coverprofile=c.out ./...