From e870b0087a2b80c0d97f00002788ecb6a2217a52 Mon Sep 17 00:00:00 2001 From: ~wispem-wantex Date: Wed, 14 Oct 2026 21:18:05 -0700 Subject: [PATCH] ci: add ci flow --- .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..ff81a51 --- /dev/null +++ b/.gitea/workflows/CI.yaml @@ -0,0 +1,28 @@ +name: CI + +on: [push, workflow_dispatch] + +jobs: + test: + container: + image: gas + volumes: + - woodpecker-gocache:/go-cache-volume + env: + GOPATH: /go-cache-volume + GOCACHE: /go-cache-volume/build-cache + GOLANGCI_LINT_CACHE: /go-cache-volume/golangci-lint + steps: + - name: checkout + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gocheckout + + - name: test + run: ops/test.sh + + - name: lint + run: ops/lint.sh + + - name: lint shell + run: find ops/ -name "*.sh" | xargs shellcheck