From 43e577d58df425d88c913867a426b70979641234 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 07:17:13 +0000 Subject: [PATCH] Add CI workflow for PRs and pushes to main Runs build, tests (with race detector), and go vet. https://claude.ai/code/session_015F9BYQoCy2P2zYZBuVeXHH --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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..abc7213 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + build-and-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: Test + run: go test ./... -timeout 60s -race + + vet: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + + - name: Vet + run: go vet ./...