Skip to content

Commit dcc44eb

Browse files
committed
chore: add CGO_ENABLE for the race detector
1 parent 52a54dd commit dcc44eb

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

Taskfile.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,26 @@ version: "3"
1313
tasks:
1414
test:
1515
desc: Run all tests
16+
env:
17+
CGO_ENABLED: 1
1618
cmds:
17-
- go test ./...
19+
- go test -race ./...
20+
21+
benchmark:
22+
desc: Run all benchmarks
23+
aliases: [bench]
24+
cmds:
25+
- go test -bench=. ./...
26+
1827
tdd:
1928
desc: Test Driven Development - Watch tests
29+
env:
30+
CGO_ENABLED: 1
2031
watch: true
2132
sources:
2233
- "**/*.go"
2334
cmds:
24-
- go test ./...
35+
- go test -race ./...
2536

2637
lint:
2738
desc: Run all linters

0 commit comments

Comments
 (0)