RegionIO/.github/workflows/verify.yml

43 lines
988 B
YAML

name: verify
on:
push:
pull_request:
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.26.x'
cache: true
- run: go build ./...
- run: go vet ./...
- run: go test ./...
race:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.26.x'
cache: true
# Density-based world tests are intentionally exhaustive and race adds
# substantial overhead; keep the package timeout above the normal 10m.
- run: go test -race -timeout 20m ./...
parity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.26.x'
cache: true
- run: go test ./internal/world -run TestVanillaBlockParity -count=1 -v