From fb3f96f608798bb75955ff673c3cbe354b2df1b1 Mon Sep 17 00:00:00 2001 From: Tyler Koenig Date: Sat, 23 May 2026 22:02:26 -0400 Subject: [PATCH] ci: add Gitea Actions pipeline for test and lint Runs on push to main and on pull requests. Two parallel jobs: - test: go vet + go test -race - lint: golangci-lint via official action --- .gitea/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..3453231 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: "1.24" + + - name: Vet + run: go vet ./... + + - name: Test + run: go test -race -timeout 120s ./... + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: "1.24" + + - uses: golangci/golangci-lint-action@v6 + with: + version: v2.11.2