-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (42 loc) · 1 KB
/
test.yaml
File metadata and controls
42 lines (42 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: test
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
target:
- unit-test-1-cpu
- unit-test-2-cpu
- unit-test-4-cpu
- unit-test-4-cpu-race
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
check-latest: false
- name: Run test on ${{ matrix.target }}
env:
TARGET: ${{ matrix.target }}
TIMEOUT: 30m
run: |
case "${TARGET}" in
unit-test-1-cpu)
CPU=1 make test
;;
unit-test-2-cpu)
CPU=2 make test
;;
unit-test-4-cpu)
CPU=4 make test
;;
unit-test-4-cpu-race)
CPU=4 ENABLE_RACE=true make test
;;
*)
echo "Failed to find target"
exit 1
;;
esac