Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 947 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 947 Bytes

GitLab CI validation of publiccode.yml files

License

Usage

This snippet can be included in GitLab CI to validate publiccode.yml files using libpubliccode.

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://raw.githubusercontent.com/italia/publiccode-parser-gitlab-ci/main/publiccode-validation.yml

Run in a custom stage

# .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