From 33ef99aca37d6a5b579eaa231c1f651b6b801775 Mon Sep 17 00:00:00 2001 From: Gary Date: Fri, 5 Jun 2026 15:27:53 +1000 Subject: [PATCH] ci: add Gitea Actions workflow for Go unit tests Co-authored-by: multica-agent --- .gitea/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..5be54da --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: '1.24' + cache: true + + - name: Vet + run: go vet ./... + + - name: Test + run: go test -v -race -coverprofile=coverage.out ./... + + - name: Build + run: go build -v ./... -- 2.54.0