From d85b017a56b9e0d990297f33e4bf1c5d0c339aab Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Tue, 28 Apr 2026 21:55:40 +0200 Subject: [PATCH] Add Gitea Actions CI workflow Runs on push to main and pull requests against main: - go mod download + verify - make lint (go vet) - make build - make test (race detector) Uses actions/setup-go@v5 with built-in module caching, Go 1.22. Workflow times out at 5 minutes per the acceptance criteria. Closes #5. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitea/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..a85a9bc --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + ci: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: "1.22" + cache: true + + - name: Verify modules + run: go mod download && go mod verify + + - name: Vet + run: make lint + + - name: Build + run: make build + + - name: Test + run: make test