setup-arduino-cli
setup-arduino-cli copied to clipboard
GitHub Action to setup Arduino CLI
setup-arduino-cli
This action makes the arduino-cli tool available to Workflows.
Usage
To get the latest stable version of arduino-cli just add this step:
- name: Install Arduino CLI
uses: arduino/setup-arduino-cli@v1
If you want to pin a major or minor version you can use the .x wildcard:
- name: Install Arduino CLI
uses: arduino/setup-arduino-cli@v1
with:
version: "0.x"
To pin the exact version:
- name: Install Arduino CLI
uses: arduino/setup-arduino-cli@v1
with:
version: "0.5.0"
Examples
Here there is a good example on how to use the action. See also the Arduino on GitHub Actions blogpost to learn more.
Development
To work on the codebase you have to install all the dependencies:
# npm install
To run tests set the environment variable GITHUB_TOKEN with a valid Personal Access Token and then:
# npm run test
See the official Github documentation to know more about Personal Access Tokens.
Release
npm installto add all the dependencies, included development.npm run buildto build the Action under the./libfolder.npm run testto see everything works as expected.npm run packto package for distributiongit add src distto check in the code that matters.- If the release will increment the major version, update the action refs in the examples in README.md
(e.g.,
uses: arduino/setup-arduino-cli@v1->uses: arduino/setup-arduino-cli@v2). - open a PR and request a review.
- After PR is merged, create a release, following the
vX.Y.Ztag name convention. - After the release, rebase the release branch for that major version (e.g.,
v1branch for the v1.x.x tags) on the tag. If no branch exists for the release's major version, create one.
Security
If you think you found a vulnerability or other security-related bug in this project, please read our security policy and report the bug to our Security Team 🛡️ Thank you!
e-mail contact: [email protected]