.github: improve actions test runs

This commit is contained in:
Felix Lange 2025-07-04 14:36:15 +02:00
parent 063033834b
commit e5569faac7

View file

@ -1,5 +1,3 @@
name: i386 linux tests
on: on:
push: push:
branches: [ master ] branches: [ master ]
@ -10,7 +8,7 @@ on:
jobs: jobs:
lint: lint:
name: Lint name: Lint
runs-on: self-hosted runs-on: self-hosted-ghr
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -23,8 +21,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: 1.23.0 go-version: 1.24
cache: false
- name: Run linters - name: Run linters
run: | run: |
@ -32,17 +29,30 @@ jobs:
go run build/ci.go check_generate go run build/ci.go check_generate
go run build/ci.go check_baddeps go run build/ci.go check_baddeps
build: test-latest:
runs-on: self-hosted name: Tests (Go 1.24)
runs-on: self-hosted-ghr
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: 1.24.0 go-version: 1.24
cache: false
- name: Run tests - name: Run tests
run: go test -short ./... run: go test ./...
env:
GOOS: linux test-prev:
GOARCH: 386 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 ./...