This snippet can be included in GitLab CI to validate
publiccode.yml
files using publiccode-parser-go.
You can use it in your workflow to check if publiccode.yml
in your repo is valid.
# .gitlab-ci.yml
include:
- https://raw.githubusercontent.com/italia/publiccode-parser-gitlab-ci/main/publiccode-validation.yml
# .gitlab-ci.yml
include:
- https://raw.githubusercontent.com/italia/publiccode-parser-gitlab-ci/main/publiccode-validation.yml
stages:
- custom_stage
publiccode-parser:
stage: custom_stage