From 7b4e416f4a622e02edc420061e0a7f9959c6c203 Mon Sep 17 00:00:00 2001 From: Miguel Eduardo Gil Biraud Date: Wed, 8 Jul 2026 00:33:50 +0000 Subject: [PATCH] ci: add GitHub Actions workflow Build, vet, and the -short regression suite (600+ specs) plus golangci-lint on every push and pull request. All inputs are committed (vendored JS modules, WASM binaries, test data), so the workflow needs no network beyond toolchain setup (audit C18). --- .github/workflows/ci.yml | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8ad8021 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,43 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + + - name: Build + run: go build ./... + + - name: Vet + run: go vet ./... + + # -short skips the slow geo/TopoJSON specs (~2-40s each); the rest of + # the 600+-spec regression corpus still runs. Everything needed is + # committed (vendored JS modules, WASM binaries, test data), so no + # network access is required. + - name: Test + run: go test -short ./... + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + + - uses: golangci/golangci-lint-action@v8