Skip to content

Commit

Permalink
Makes tests with data race detector by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ksysoev committed Aug 19, 2023
1 parent b1bd926 commit 940752b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Build
run: go build -v .
- name: Test
run: go test -coverprofile=coverage.out -covermode=atomic -v .
run: go test -coverprofile=coverage.out -covermode=atomic -v --race .
- name: Prepare coverage reports
run: |
cat coverage.out | grep -v "/schema.go" | grep -v "/calls.go" | grep -v "subscription_calls.go" > coverage.final.out
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: make generate_all

- name: Test
run: go test -coverprofile=coverage.out -covermode=atomic -v .
run: go test -coverprofile=coverage.out -covermode=atomic -v --race .

- name: Commit changes
uses: EndBug/add-and-commit@v9
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ clean:
rm -rf deriv-developers-portal

test:
go test -v .
go test -v --race .

coverage:
go test -covermode=count -coverprofile=coverage.out .
Expand Down

0 comments on commit 940752b

Please sign in to comment.