This orb validates publiccode.yml files
using publiccode-parser-go
You can use it in your workflow to check if publiccode.yml in your repo is valid.
Example:
orbs:
publiccode-parser: italia/publiccode-parser@0.0.3workflows:
test_my_app:
jobs:
- publiccode-parser/validatesee the orb registry listing for the full documentation and examples.
Create a feature branch and work on changes
Check for errors with
circleci config validatePut
[semver:patch]in your commit subject to automatically bump the orb version (or[semver:minor]or[semver:major])Push the feature branch to
italia/publiccode-parser-orb, not your own fork.Open a PR, the build scripts will start
If the build errors out with
"Cannot find italia/publiccode-parser@dev:alpha in the orb registry".circleci orb pack src > file.yml circleci orb validate file.yml circleci orb publish file.yml italia/publiccode-parser@dev:alphaRerun the build
Approve the
hold-for-dev-publishjob in CircleCIThe
publish-devjob will publish a new development orb (italia/publiccode-parser@dev:alpha)If the
integration-devworkflow passes, get review and merge to masterApprove
hold-for-dev-publishagain when the pipeline on master runsCheck the new version is published and create a new PR bumping the version in the README as well