-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Paul Cacheux <[email protected]>
- Loading branch information
1 parent
0cd3acc
commit 36a9355
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,6 +149,47 @@ jobs: | |
name: Test Results (previous stable Go) | ||
path: junit.xml | ||
|
||
test-race: | ||
name: Run tests with race detector | ||
runs-on: ubuntu-latest | ||
needs: build-and-lint | ||
timeout-minutes: 15 | ||
env: | ||
CI_KERNEL_SELFTESTS: '/usr/src/linux/tools/testing/selftests/bpf' | ||
CGO_ENABLED: '1' # CGo is required by `-race` | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '${{ env.go_version }}' | ||
|
||
- run: go install gotest.tools/[email protected] | ||
|
||
- name: Test | ||
env: | ||
GOTRACEBACK: crash | ||
run: | | ||
gotestsum --ignore-non-json-output-lines --junitfile junit.xml -- -exec 'sudo -E' -timeout 5m -short -race -count 1 -json ./... | ||
- name: Upload coredumps | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ failure() }} | ||
with: | ||
name: cores | ||
if-no-files-found: ignore | ||
path: | | ||
**/core-* | ||
**/*.test | ||
- name: Upload Test Results | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Test Results (previous stable Go) | ||
path: junit.xml | ||
|
||
test-on-arm64: | ||
name: Run tests on arm64 | ||
runs-on: ubuntu-22.04-arm64 | ||
|