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/setup-arduino-cli@m1.0.0
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@m1.0.0
with:
version: '0.x'
To pin the exact version:
- name: Install Arduino CLI
uses: arduino/setup-arduino-cli@m1.0.0
with:
version: '0.5.0'
To work on the codebase you have to install all the dependencies:
# npm install
To run the tests:
# npm run test
We check in the node_modules
to provide runtime dependencies to the system
using the Action, so be careful not to git add
all the development dependencies
you might have under your local node_modules
. To release a new version of the
Action the workflow should be the following:
npm install
to add all the dependencies, included development.npm run test
to see everything works as expected.npm build
to build the Action under the./lib
folder.rm -rf node_modules
to remove all the dependencies.npm install --production
to add back only the runtime dependencies.git add lib node_modules
to check in the code that matters.- open a PR and request a review.