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.3
workflows:
test_my_app:
jobs:
- publiccode-parser/validate
see the orb registry listing for the full documentation and examples.
-
Create a feature branch and work on changes
-
Check for errors with
circleci config validate
-
Put
[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:alpha
-
Rerun the build
-
-
Approve the
hold-for-dev-publish
job in CircleCI -
The
publish-dev
job will publish a new development orb (italia/publiccode-parser@dev:alpha
) -
If the
integration-dev
workflow passes, get review and merge to master -
Approve
hold-for-dev-publish
again when the pipeline on master runs -
Check the new version is published and create a new PR bumping the version in the README as well