From 4a9d4a740706d6033d1e185be7ec1888ce911b96 Mon Sep 17 00:00:00 2001 From: Daniar Mannanov Date: Wed, 26 Aug 2026 02:00:06 +0300 Subject: [PATCH] Add GitHub Actions workflow for code verification This workflow defines jobs for verifying Go code, including building, vetting, and testing with race detection. --- .github/workflows/verify.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/verify.yml diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml new file mode 100644 index 0000000..e8e9c5b --- /dev/null +++ b/.github/workflows/verify.yml @@ -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