Skip to content

Commit df38021

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 6c30310 commit df38021

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
@@ -15,17 +15,19 @@ jobs:
1515
uses: actions/setup-go@v6
1616
with:
1717
go-version: ${{ matrix.go_version }}
18+
# Used for ci.readme.fmt.sh
1819
- run: npm install -g mdsf-cli
1920
- run: ./.ci.gogenerate.sh
2021
- run: ./.ci.gofmt.sh
2122
- run: ./.ci.readme.fmt.sh
2223
- run: ./.ci.govet.sh
23-
- run: go test -v -race ./...
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"
@@ -39,4 +41,5 @@ jobs:
3941
uses: actions/setup-go@v6
4042
with:
4143
go-version: ${{ matrix.go_version }}
42-
- run: go test -v -race ./...
44+
- name: Test
45+
run: go test -v -race ./...

0 commit comments

Comments
 (0)