2024-09-19 11:21:05 +02:00
|
|
|
version: "3"
|
|
|
|
vars:
|
|
|
|
NIX_CMD_BASE: nix develop . -c
|
|
|
|
tasks:
|
|
|
|
ci:
|
|
|
|
cmds:
|
|
|
|
- task: lint
|
|
|
|
- task: test
|
2024-09-19 12:01:49 +02:00
|
|
|
- task: release-snapshot
|
2024-09-19 11:21:05 +02:00
|
|
|
|
|
|
|
lint:
|
|
|
|
cmds:
|
|
|
|
- "{{.NIX_CMD_BASE}} golangci-lint run --enable-all"
|
|
|
|
|
|
|
|
test:
|
|
|
|
cmds:
|
|
|
|
- "{{.NIX_CMD_BASE}} go test -v -race ./..."
|
2024-09-19 12:01:49 +02:00
|
|
|
|
|
|
|
tidy:
|
|
|
|
cmds:
|
|
|
|
- go mod tidy
|
|
|
|
- go mod vendor
|
|
|
|
|
|
|
|
release:
|
|
|
|
cmds:
|
|
|
|
- "{{.NIX_CMD_BASE}} goreleaser release --clean"
|
|
|
|
|
|
|
|
release-snapshot:
|
|
|
|
cmds:
|
|
|
|
- "{{.NIX_CMD_BASE}} goreleaser release --clean --snapshot"
|