mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
github/workflows: move race tests to their own job
They're slow. Make them their own job that can run in parallel. Also, only run them in race mode. No need to run them on 386 or non-race amd64. Updates #7894 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
c363b9055d
commit
18e2936d25
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
@ -39,6 +39,16 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
race-root-integration:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: build test wrapper
|
||||||
|
run: ./tool/go build -o /tmp/testwrapper ./cmd/testwrapper
|
||||||
|
- name: integration tests as root
|
||||||
|
run: PATH=$PWD/tool:$PATH /tmp/testwrapper --sudo ./tstest/integration/ -race
|
||||||
|
|
||||||
test:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false # don't abort the entire matrix if one element fails
|
fail-fast: false # don't abort the entire matrix if one element fails
|
||||||
@ -90,8 +100,6 @@ jobs:
|
|||||||
sudo apt-get -y install qemu-user
|
sudo apt-get -y install qemu-user
|
||||||
- name: build test wrapper
|
- name: build test wrapper
|
||||||
run: ./tool/go build -o /tmp/testwrapper ./cmd/testwrapper
|
run: ./tool/go build -o /tmp/testwrapper ./cmd/testwrapper
|
||||||
- name: integration tests as root
|
|
||||||
run: PATH=$PWD/tool:$PATH /tmp/testwrapper --sudo ./tstest/integration/ ${{matrix.buildflags}}
|
|
||||||
- name: test all
|
- name: test all
|
||||||
run: PATH=$PWD/tool:$PATH /tmp/testwrapper ./... ${{matrix.buildflags}}
|
run: PATH=$PWD/tool:$PATH /tmp/testwrapper ./... ${{matrix.buildflags}}
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user