Skip to content
Snippets Groups Projects
Commit 6a61cbb7 authored by ale's avatar ale
Browse files

Add generic CI script to include

parent e10c8860
No related branches found
No related tags found
No related merge requests found
Pipeline #76166 passed
ci.yml 0 → 100644
lint:
stage: test
image: registry.git.autistici.org/pipelines/images/test/golangci-lint:main
script:
# Write the code coverage report to gl-code-quality-report.json
# and print linting issues to stdout in the format: path/to/file:line description
- golangci-lint run --out-format code-climate | tee gl-code-quality-report.json | jq -r '.[] | "\(.location.path):\(.location.lines.begin) \(.description)"'
artifacts:
reports:
codequality: gl-code-quality-report.json
paths:
- gl-code-quality-report.json
allow_failure: true
rules:
- if: $CI_COMMIT_TAG == null
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment