Skip to content

Add GitHub Actions workflow JSON schema validation task/CI #2079

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
umbynos opened this issue Feb 17, 2023 · 1 comment
Open

Add GitHub Actions workflow JSON schema validation task/CI #2079

umbynos opened this issue Feb 17, 2023 · 1 comment
Assignees
Labels
criticality: medium Of moderate impact topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement

Comments

@umbynos
Copy link
Contributor

umbynos commented Feb 17, 2023

There is a community created JSON schema for GitHub Actions workflows:
https://json.schemastore.org/github-workflow
Although not official, I have found this to be well done and actively maintained (the PRs I submitted are merged within a matter of hours).

I have found this to be useful and set up a "template" workflow:

https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-workflows-task.md

which means it can be added to any repository with a simple copy/paste operation.

That template is already in use in several other repos for some time.

Silvano suggested adding it also to the Arduino CLI repo, and I am in agreement that this should be considered.

Related

@umbynos umbynos added criticality: medium Of moderate impact topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement labels Feb 17, 2023
@alessio-perugini
Copy link
Contributor

This might be helpful:
https://rhysd.github.io/actionlint/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
criticality: medium Of moderate impact topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

3 participants