File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919jobs :
2020 test :
21- name : ${{ matrix.name }}
21+ name : Test
2222 runs-on : ubuntu-latest
23- if : inputs.test || inputs.race
24- strategy :
25- fail-fast : false
26- matrix :
27- include :
28- - name : Test
29- flags : ' '
30- enabled : ${{ inputs.test }}
31- - name : Test (race)
32- flags : ' -race'
33- enabled : ${{ inputs.race }}
34- exclude :
35- - enabled : false
23+ if : inputs.test
3624 steps :
3725 - name : Checkout code
3826 uses : actions/checkout@v6
4432 uses : ./.github/actions/go-test-setup
4533 if : hashFiles('./.github/actions/go-test-setup') != ''
4634 - name : Run tests
47- run : go test ${{ matrix.flags }} ./...
35+ run : go test ./...
36+
37+ race :
38+ name : Test (race)
39+ runs-on : ubuntu-latest
40+ if : inputs.race
41+ steps :
42+ - name : Checkout code
43+ uses : actions/checkout@v6
44+ - name : Set up Go
45+ uses : actions/setup-go@v6
46+ with :
47+ go-version : ' ${{ inputs.go-version }}'
48+ - name : Run repo-specific setup
49+ uses : ./.github/actions/go-test-setup
50+ if : hashFiles('./.github/actions/go-test-setup') != ''
51+ - name : Run tests
52+ run : go test -race ./...
You can’t perform that action at this time.
0 commit comments