From 3596b2e9708d3aa5346b8a478a2a2d058d63515c Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 4 Jul 2025 14:54:27 +0200 Subject: [PATCH] .github: go version matrix --- .github/workflows/go.yml | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 402b578a1e..bcdf6ff53d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -29,32 +29,25 @@ jobs: go run build/ci.go check_generate go run build/ci.go check_baddeps - test-latest: - name: Tests (Go 1.24) + test: + name: Test needs: lint runs-on: self-hosted-ghr + strategy: + matrix: + go: + - '1.24' + - '1.23' steps: - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.24 - - - name: Run tests - run: go test ./... - - test-prev: - name: Tests (Go 1.23) - needs: lint - runs-on: self-hosted-ghr - steps: - - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: 1.23 + go-version: ${{ matrix.go }} + cache-dependency-path: | + go.sum + build/checksums.txt - name: Run tests run: go test ./...