-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
44 lines (38 loc) · 870 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
44 lines (38 loc) · 870 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
# https://taskfile.dev
version: '3'
vars:
BINFILE: mdtohtml
IMG: sgaunet/mdtohtml:latest
tasks:
default:
desc: "List all tasks"
cmds:
- task -a
lint:
desc: "Run linter"
cmds:
- golangci-lint run
build:
desc: "Build the binary"
cmds:
- go mod tidy
- go mod download
- CGO_ENABLED=0 go build .
integration:
desc: "Run venom integration tests"
deps: [build]
cmds:
- rm -rf $PWD/results
- mkdir -p $PWD/results
- >-
venom run tst/integration/testsuite-*.yml
--var=bin={{.ROOT_DIR}}/{{.BINFILE}}
--var=fix={{.ROOT_DIR}}/tst/integration/fixtures
--output-dir=$PWD/results
--stop-on-failure
snapshot:
cmds:
- GITLAB_TOKEN="" goreleaser --clean --snapshot
release:
cmds:
- GITLAB_TOKEN="" goreleaser --clean