italia / publiccode-parser-gitlab-ci

GitLab CI validation of publiccode.yml files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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://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

About

GitLab CI validation of publiccode.yml files

License:MIT License