Add GitHub Actions workflow for code verification
This workflow defines jobs for verifying Go code, including building, vetting, and testing with race detection.
This commit is contained in:
parent
ee634ae830
commit
4a9d4a7407
1 changed files with 31 additions and 0 deletions
31
.github/workflows/verify.yml
vendored
Normal file
31
.github/workflows/verify.yml
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
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]
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue