From e5569faac7e21c319f5385103bae8b9552465a5b Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 4 Jul 2025 14:36:15 +0200 Subject: [PATCH] .github: improve actions test runs --- .github/workflows/go.yml | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 78410aab10..eaacb724d3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,5 +1,3 @@ -name: i386 linux tests - on: push: branches: [ master ] @@ -10,7 +8,7 @@ on: jobs: lint: name: Lint - runs-on: self-hosted + runs-on: self-hosted-ghr steps: - uses: actions/checkout@v4 @@ -23,8 +21,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.23.0 - cache: false + go-version: 1.24 - name: Run linters run: | @@ -32,17 +29,30 @@ jobs: go run build/ci.go check_generate go run build/ci.go check_baddeps - build: - runs-on: self-hosted + test-latest: + name: Tests (Go 1.24) + runs-on: self-hosted-ghr steps: - uses: actions/checkout@v4 + - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.24.0 - cache: false + go-version: 1.24 + - name: Run tests - run: go test -short ./... - env: - GOOS: linux - GOARCH: 386 + run: go test ./... + + test-prev: + name: Tests (Go 1.23) + runs-on: self-hosted-ghr + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: 1.23 + + - name: Run tests + run: go test ./...