GitLab CI¶
.gitlab-ci.yml:
stages:
- test
- quality
crap:
stage: quality
image: golang:1.23
before_script:
- curl -fsSL https://padiazg.github.io/go-crap/install.sh | sh
script:
- go-crap scan --fail-above --threshold 30 --exclude 'testdata/.*\.go'
allow_failure: false