Github Action to run Ritchie CLI commands on any OS runner ⚙️🖥
☞ Who is using this action? 🧑💻
actions/checkout
is mandatory to use this action on WINDOWS RUNNER
, as the repository root is used to install and execute Ritchie binary.
Actions to setup environments
may be necessary to use this action depending on the runner
or the programming language
that will be used to run and build the formula. For example:
- setup-node for formula coded using Node,
- setup-go for formula code using Golang,
- setup-java for formula coded using Java
- ...
Unix
steps:
- uses: # setup for formula programming language if needed
- uses: GuillaumeFalourd/ritchie-cli-action@v1
with:
rit_formula_command: rit demo coffee-python --rit_name=Dennis --rit_coffee_type=espresso --rit_delivery=false
rit_repo_url: https://github.com/ZupIT/ritchie-formulas-demo
Windows
steps:
- uses: actions/[email protected]
- uses: # setup for formula programming language if needed
- uses: GuillaumeFalourd/ritchie-cli-action@v1
with:
rit_formula_command: ./rit.exe demo coffee-python --rit_name=Dennis --rit_coffee_type=espresso --rit_delivery=false
rit_repo_url: https://github.com/ZupIT/ritchie-formulas-demo
Unix
steps:
- uses: # setup for formula programming language if needed
- uses: GuillaumeFalourd/ritchie-cli-action@v1
with:
rit_formula_command: rit python math sum numbers --number_one=1 --number_two=2
rit_repo_url: https://github.com/GuillaumeFalourd/formulas-training
access_token: ${{ secrets.ACCESS_TOKEN }}
Windows
steps:
- uses: actions/[email protected]
- uses: # setup for formula programming language if needed
- uses: GuillaumeFalourd/ritchie-cli-action@v1
with:
rit_formula_command: ./rit.exe python math sum numbers --number_one=1 --number_two=2
rit_repo_url: https://github.com/GuillaumeFalourd/formulas-training
access_token: ${{ secrets.ACCESS_TOKEN }}
Field | Mandatory | Observation |
---|---|---|
rit_formula_command | YES | Ritchie formula command line. e.g: rit demo hello-world (UNIX)e.g: ./rit.exe demo hello-world (WINDOWS) |
rit_repo_url | YES | Github repository where the formula's code is located. e.g: https://github.com/ZupIT/ritchie-formulas-demo |
access_token | NO | Github Personal Access Token with access to the private formulas repository to import. |
Note: Formula's generated outputs (files or directories) will be located at the repository root ($GITHUB_WORKSPACE
).
☞ This repository uses the Apache License 2.0