Skip to content

Commit 0427174

Browse files
authored
test: Add race detection to all test commands (#63)
1 parent 56b7dae commit 0427174

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: go vet ./...
2323

2424
- name: Test
25-
run: go test -coverprofile=coverage.out ./...
25+
run: go test -race -coverprofile=coverage.out ./...
2626

2727
- name: Upload test coverage report
2828
uses: codecov/[email protected]

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ run: build
2727
./bin/main javascript
2828

2929
test:
30-
go test ./...
30+
go test -race ./...
3131

3232
test-verbose:
33-
go test -v ./...
33+
go test -race -v ./...
3434

3535
test-coverage:
36-
go test -coverprofile=coverage.out ./...
36+
go test -race -coverprofile=coverage.out ./...
3737
go tool cover -html=coverage.out -o coverage.html
3838
open coverage.html

0 commit comments

Comments
 (0)