Skip to content

Gitea CI

Standard .gitea/workflows/ci.yml or cicd.yml:

---
name: crap
on: [push, pull_request]

jobs:
  crap:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v8
      - name: Setup Go
        uses: actions/setup-go@v7
        with:
          go-version: '1.23'
          cache: true
      - name: Install go-crap
        run: curl -fsSL https://padiazg.github.io/go-crap/install.sh | sh
      - name: Run go-crap
        run: go-crap scan --fail-above --threshold 30 --exclude 'testdata/.*\.go'

Annotations

Gitea Actions supports GitHub-style ::warning annotations:

      - name: Run go-crap with annotations
        run: go-crap scan --format github --threshold 30