Add self-run workflow for verification

This commit is contained in:
Daniar Mannanov 2026-08-26 02:13:33 +03:00 committed by GitHub
parent 9c7f02662f
commit 38c620295a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

33
.github/workflows/verify.yml.selfrun vendored Normal file
View file

@ -0,0 +1,33 @@
name: verify
on:
push:
pull_request:
permissions:
contents: read
jobs:
verify:
runs-on: [self-hosted, windows]
steps:
- uses: actions/checkout@v4
- run: go build ./...
- run: go vet ./...
- run: go test ./...
race:
runs-on: [self-hosted, windows]
env:
CGO_ENABLED: 1
steps:
- uses: actions/checkout@v4
# 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: [self-hosted, windows]
steps:
- uses: actions/checkout@v4
- run: go test ./internal/world -run TestVanillaBlockParity -count=1 -v