From 50b80f4407259421c1d8ef3870cc6c9022338641 Mon Sep 17 00:00:00 2001 From: Tyler Koenig Date: Wed, 20 May 2026 20:42:16 -0400 Subject: [PATCH] ci: add Gitea Actions workflow for test and lint on PR --- .gitea/workflows/ci.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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..3bccfb9 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,34 @@ +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-file: go.mod + + - name: Vet + run: go vet ./... + + - name: Format check + run: | + diff=$(gofmt -l .) + if [ -n "$diff" ]; then + echo "Files need formatting:" + echo "$diff" + exit 1 + fi + + - name: Test + run: go test -race -count=1 ./... + + - name: Build + run: go build -trimpath -o nib .