-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
56 lines (55 loc) · 1.25 KB
/
Taskfile.yml
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
55
56
version: '3'
tasks:
lint:
cmds:
- golangci-lint run --config .golangci.yml --timeout 3m
test-internal:
dir: internal
cmds:
- go test -count=1 --tags "fts5" ./...
test-cmd:
dir: cmd
cmds:
- go test -count=1 --tags "fts5" ./...
test:
cmds:
- task: test-internal
- task : test-cmd
build-cli:
dir: cmd/cli
cmds:
- go build --tags "fts5" -ldflags="-X main.version=local"
- cp cli ../../armaria
build-seeder:
dir: cmd/seeder
cmds:
- go build --tags "fts5"
- cp seeder ../../armaria-seeder
build:
cmds:
- task: build-cli
- task: build-seeder
migrate-up:
cmds:
- goose -dir ./internal/db/migrations sqlite3 ./bookmarks.db up
migrate-down:
cmds:
- goose -dir ./internal/db/migrations sqlite3 ./bookmarks.db down
clean:
cmds:
- rm -f armaria
- rm -f armaria-seeder
- rm -f cmd/cli/cli
- rm -f cmd/seeder/seeder
- find . -name "*.db" -type f -delete
- find . -name "*.db-shm" -type f -delete
- find . -name "*.db-wal" -type f -delete
vulns:
cmds:
- ./tools/snyk
release:
cmds:
- goreleaser release
release-snapshot:
cmds:
- goreleaser release --snapshot --clean