From 9185e1de893d2711223a97706040947baee913e5 Mon Sep 17 00:00:00 2001 From: s1d3sw1ped_bot <12+s1d3sw1ped_bot@git.s1d3sw1ped.com> Date: Tue, 1 Sep 2026 19:45:01 +0000 Subject: [PATCH] ci: Add Gitea Actions workflow Pushes and pull requests had no automated test or build on Gitea. A CI workflow matching the existing Go module runs go test -race and go build on master, develop, and pull requests. Fixes #7 --- .gitea/workflows/ci.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..18b9c19 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: + - master + - develop + pull_request: + +jobs: + ci: + name: Test and build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + cache: true + + - name: Test + run: go test -race ./... + + - name: Build + run: go build ./...