Skip to content

Commit 0f57134

Browse files
authored
feat: allow skipping race detector (#31)
1 parent 9918aee commit 0f57134

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/go-test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
- name: Run tests with race detector
109109
# speed things up. Windows and OSX VMs are slow
110110
if: matrix.os == 'ubuntu' &&
111+
fromJSON(steps.config.outputs.json).skipRace != true &&
111112
contains(fromJSON(steps.config.outputs.json).skipOSes, matrix.os) == false
112113
uses: protocol/[email protected]
113114
env:

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Unreleased
88

9+
## [0.0.11] - 2023-08-23
10+
### Added
11+
- allow skipping race detector in Go test workflow
12+
913
## [0.0.10] - 2023-08-23
1014
### Changed
1115
- use bash as a default shell in reusable workflows that run on windows

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ Typically, such tests can be disabled using [build constraints](https://pkg.go.d
9090
However, the constraints must be set per go file, which can be cumbersome for a project with many files.
9191
Using this option, 32-bit tests can be skipped entirely without having to specify build constraints per file.
9292

93-
To completely disable running 32-bit tests set `skip32bit` to `true` in `.github/workflows/go-test-config.json`:
93+
To completely disable running 32-bit and/or race detection tests set `skip32bit`/`skipRace` to `true` in `.github/workflows/go-test-config.json`:
9494
```json
9595
{
96-
"skip32bit": true
96+
"skip32bit": true,
97+
"skipRace": true
9798
}
9899
```
99100

0 commit comments

Comments
 (0)