.github/workflows: run go test -race for all packages (#3848)
Concurrency tests in the root package, text/v2, vector, internal/thread, internal/hook, internal/gamepaddb, exp/textinput and exp/vmhost only catch a data race under the race detector. Run go test -race on ./... with -p=1, like the plain Linux step, in one Linux cell with the newest Go, as the races are not platform specific and every Go version in the matrix compiles the same code. Closes #3569
This commit is contained in:
1 parent
9480cbfc46
commit
8198c5c4b3
1 file changed
+5
@@ -129,6 +129,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
go test -shuffle=on -v -p=1 ./...
|
go test -shuffle=on -v -p=1 ./...
|
||||||
|
|
||||||
|
- name: go test -race (Linux)
|
||||||
|
if: runner.os == 'Linux' && matrix.go == '1.27.x'
|
||||||
|
run: |
|
||||||
|
go test -race -shuffle=on -v -p=1 ./...
|
||||||
|
|
||||||
- name: go test (Linux 386)
|
- name: go test (Linux 386)
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user