Skip to content

Commit 85bf767

Browse files
committed
CI: run tests separately from build jobs
Reorganize GitHub Actions workflows to run tests the same way on all Go versions, and so remove running tests from the 'build' jobs (which run job only on 'oldstable' and 'stable'). This makes the build matrix of the 'test' job more consistent.
1 parent 37a3cb7 commit 85bf767

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ jobs:
2020
- run: ./.ci.gofmt.sh
2121
- run: ./.ci.readme.fmt.sh
2222
- run: ./.ci.govet.sh
23-
- run: go test -v -race ./...
23+
2424
test:
2525
runs-on: ubuntu-latest
2626
strategy:
2727
matrix:
2828
go_version:
29+
- stable
30+
- oldstable
2931
- "1.17"
3032
- "1.18"
3133
- "1.19"
@@ -40,4 +42,5 @@ jobs:
4042
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
4143
with:
4244
go-version: ${{ matrix.go_version }}
43-
- run: go test -v -race ./...
45+
- name: Test
46+
run: go test -v -race ./...

0 commit comments

Comments
 (0)