From 30a7f4fec6da71052a82fe83ca4a4fbfbe4fe624 Mon Sep 17 00:00:00 2001 From: Story Crater Bot <19826264+Riotpiaole@users.noreply.github.com> Date: Fri, 21 Aug 2026 21:23:40 -0700 Subject: [PATCH] ci(main): add Go test and build workflow --- .gitea/workflows/ci.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..f5a51e2 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,30 @@ +name: ci + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + runs-on: golang + container: + image: golang:1.25 + env: + GOPRIVATE: forgejo.riotpiao.com + GOFLAGS: -mod=readonly + GITHUB_TOKEN: ${{ secrets.REGISTRY_PAT }} + steps: + - uses: actions/checkout@v4 + + - name: Download dependencies + run: go mod download + + - name: Test + run: go test -v ./... + + - name: Build + run: go build -o /tmp/poimen-workflows ./cmd/... + + - name: Vet + run: go vet ./...