Skip to content

Commit 80cd04a

Browse files
committed
Simplify go-test workflow
- Split the race test to run separately. - Stops macOS and Windows runners from ever starting.
1 parent c82f0f6 commit 80cd04a

File tree

2 files changed

+31
-13
lines changed

2 files changed

+31
-13
lines changed

.github/workflows/go-test-config.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/go-test.yml

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Go Test
1+
name: Go Tests
22

33
on:
44
pull_request:
@@ -10,12 +10,34 @@ on:
1010
permissions:
1111
contents: read
1212

13-
concurrency:
14-
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
15-
cancel-in-progress: true
16-
1713
jobs:
18-
go-test:
19-
uses: ipdxco/unified-github-workflows/.github/workflows/go-test.yml@v1.0
20-
secrets:
21-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
14+
test:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
go:
20+
- { go-version: stable }
21+
- { go-version: oldstable }
22+
- { go-version-file: go.mod }
23+
steps:
24+
- uses: actions/checkout@v5
25+
with:
26+
persist-credentials: false
27+
- uses: actions/setup-go@v6
28+
with:
29+
go-version: ${{ matrix.go.go-version }}
30+
go-version-file: ${{ matrix.go.go-version-file }}
31+
- run: go test ./...
32+
test-race:
33+
runs-on: ubuntu-latest
34+
strategy:
35+
fail-fast: false
36+
steps:
37+
- uses: actions/checkout@v5
38+
with:
39+
persist-credentials: false
40+
- uses: actions/setup-go@v6
41+
with:
42+
go-version: stable
43+
- run: go test -race ./...

0 commit comments

Comments
 (0)