-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
37 lines (31 loc) · 772 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
37 lines (31 loc) · 772 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
version: "3"
tasks:
default:
desc: List available tasks
cmds:
- task --list
build:
desc: Build a CGO-free local binary
cmds:
- mkdir -p bin
- CGO_ENABLED=0 go build -trimpath -o bin/mrstack ./cmd/mrstack
test:
desc: Run the unit, integration, contract, and CLI test suites
cmds:
- go test -shuffle=on -count=1 ./...
test-race:
desc: Run the complete test suite with the race detector
cmds:
- go test -race -shuffle=on -count=1 ./...
lint:
desc: Check formatting and run Go vet
cmds:
- test -z "$(gofmt -l .)"
- go vet ./...
test-all:
desc: Run the complete local release gate
cmds:
- task: lint
- task: test
- task: test-race
- task: build