arduino-cli icon indicating copy to clipboard operation
arduino-cli copied to clipboard

Add GitHub Actions workflow JSON schema validation task/CI

Open umbynos opened this issue 2 years ago • 1 comments

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

  • https://github.com/arduino/arduino-lint/pull/4
  • https://github.com/arduino/arduino-lint/pull/6

umbynos avatar Feb 17 '23 15:02 umbynos

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

alessio-perugini avatar Jun 09 '23 09:06 alessio-perugini