This action makes the arduino-cli tool available to Workflows.
To get the latest stable version of arduino-cli just add this step:
- name: Install Arduino CLI
uses: arduino/[email protected]If you want to pin a major or minor version you can use the .x wildcard:
- name: Install Arduino CLI
uses: arduino/[email protected]
with:
version: "0.x"To pin the exact version:
- name: Install Arduino CLI
uses: arduino/[email protected]
with:
version: "0.5.0"Here there is a good example on how to use the action. See also the Arduino on GitHub Actions blogpost to learn more.
To work on the codebase you have to install all the dependencies:
# npm installTo run tests set the environment variable GITHUB_TOKEN with a valid Personal Access Token and then:
# npm run testSee the official Github documentation to know more about Personal Access Tokens.
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.- open a PR and request a review.