-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
54 lines (45 loc) · 1.05 KB
/
Taskfile.yml
File metadata and controls
54 lines (45 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '3'
vars:
BINARY_NAME: quad-ops
tasks:
build:
desc: Build the application
cmds:
- task: fmt
- task: lint
- task: vulncheck
- task: test
- go build -o {{.BINARY_NAME}} ./cmd/quad-ops
gen-units:
desc: Generate systemd units from compose files
deps:
- build
cmds:
- mkdir -p build/generated-units
- ./{{.BINARY_NAME}} sync --config configs/config.yaml.example
test:
desc: Run all tests
cmds:
- gotestsum --format pkgname --format-icons text -- -coverprofile=coverage.out -v ./...
integration_test:
desc: Run integration tests
cmds:
- gotestsum --format pkgname --format-icons text -- -tags=integration -v ./...
lint:
desc: Run linter
cmds:
- golangci-lint run
vulncheck:
desc: Run vulnerability check
cmds:
- govulncheck ./...
fmt:
desc: Format code
cmds:
- go fmt ./...
run:
desc: Run the application (e.g. task run -- sync)
deps:
- build
cmds:
- ./{{.BINARY_NAME}} {{.CLI_ARGS}}