-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
52 lines (44 loc) · 995 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
52 lines (44 loc) · 995 Bytes
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
# https://taskfile.dev
version: "3"
tasks:
test:
desc: Run all tests.
cmds:
- go test ./pkg/... {{.CLI_ARGS}}
sources:
- ./pkg/**/*.go
silent: true
install:
desc: Install the siphon CLI.
cmds:
- go install ./cmd/siphon
sources:
- cmd/**/*.go
- pkg/**/*.go
build:
desc: Build the siphon binary.
cmds:
- go build -o ./bin/siphon ./cmd/siphon
sources:
- cmd/**/*.go
- pkg/**/*.go
lint:
desc: Run go vet.
cmds:
- go vet ./...
sources:
- ./**/*.go
integration:
desc: Run integration tests (requires Docker containers).
cmds:
- docker compose up -d --wait
- go test -tags integration -count=1 -v ./pkg/integration/...
- docker compose down
integration-up:
desc: Start test database containers.
cmds:
- docker compose up -d --wait
integration-down:
desc: Stop test database containers.
cmds:
- docker compose down