Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ jobs:
go-version-file: go.mod
cache: true

- name: Run tests
- name: Run tests (race detector)
env:
CGO_ENABLED: "1"
run: |
go test ./...
make test-race

- name: Run embedded-library tests
run: |
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ install-tools:
test:
go test ./...

# test-race runs the full suite under the race detector. CI gates on this
# target so data races in production code fail the build (PIPE-1223). Requires
# a C toolchain (the race detector needs cgo).
test-race:
go test -race ./...

lint:
go tool revive -config .revive.toml -formatter friendly ./...

Expand Down
Loading