From df3802123a6742af01072fb0a2fcd7990fce48ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Tue, 16 Sep 2025 15:19:34 +0200 Subject: [PATCH] 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. --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2cd4ad32b..2096c558b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,17 +15,19 @@ jobs: uses: actions/setup-go@v6 with: go-version: ${{ matrix.go_version }} + # Used for ci.readme.fmt.sh - run: npm install -g mdsf-cli - run: ./.ci.gogenerate.sh - run: ./.ci.gofmt.sh - run: ./.ci.readme.fmt.sh - run: ./.ci.govet.sh - - run: go test -v -race ./... test: runs-on: ubuntu-latest strategy: matrix: go_version: + - stable + - oldstable - "1.17" - "1.18" - "1.19" @@ -39,4 +41,5 @@ jobs: uses: actions/setup-go@v6 with: go-version: ${{ matrix.go_version }} - - run: go test -v -race ./... + - name: Test + run: go test -v -race ./...