name: verify # Gitea Actions uses GitHub-Actions-compatible workflow syntax and lives in # .gitea/workflows/. It only runs when the instance has Actions enabled and a # runner registered; otherwise this file is inert. See docs/本地自检与CI.md. on: push: branches: [main] pull_request: jobs: verify: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version-file: go.mod cache: true # Same three gates as verify.cmd, so local and CI never disagree. - name: gofmt run: test -z "$(gofmt -l .)" - name: build run: go build ./... - name: vet run: go vet ./... - name: test run: go test ./... -count=1 -timeout 480s