| 1 |
name: test |
| 2 |
|
| 3 |
on: [push, pull_request] |
| 4 |
|
| 5 |
jobs: |
| 6 |
mod: |
| 7 |
runs-on: ubuntu-latest |
| 8 |
name: Check modules |
| 9 |
steps: |
| 10 |
- uses: actions/setup-go@v6 |
| 11 |
with: |
| 12 |
go-version: 'oldstable' |
| 13 |
- uses: actions/checkout@v5 |
| 14 |
- run: go mod tidy && git diff --exit-code go.mod go.sum |
| 15 |
build: |
| 16 |
runs-on: ubuntu-latest |
| 17 |
strategy: |
| 18 |
matrix: |
| 19 |
version: [ 'oldstable', 'stable' ] |
| 20 |
name: Go ${{ matrix.version }} |
| 21 |
steps: |
| 22 |
- uses: actions/setup-go@v6 |
| 23 |
with: |
| 24 |
go-version: ${{ matrix.version }} |
| 25 |
- uses: actions/checkout@v5 |
| 26 |
- run: go vet ./... |
| 27 |
- run: go run github.com/onsi/ginkgo/v2/ginkgo -r --randomize-all --randomize-suites --race --trace --fail-on-pending --keep-going --label-filter="!network" |