https://github.com/drsensor/mask-action
Github action for `mask` task runner
https://github.com/drsensor/mask-action
Last synced: about 2 months ago
JSON representation
Github action for `mask` task runner
- Host: GitHub
- URL: https://github.com/drsensor/mask-action
- Owner: DrSensor
- License: mit
- Created: 2020-03-29T22:16:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-31T20:09:45.000Z (about 6 years ago)
- Last Synced: 2025-03-10T19:57:18.366Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://github.com/jakedeichert/mask
- Size: 231 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mask-action
Github Action to automatically run (or just help you to install) [mask][] task runner.
[mask]: https://github.com/jakedeichert/mask
## Example Usage
1. Given this `maskfile.md`
~~~md
# Tasks
## run
> Run all projects
```sh
make run
```
### run examples
> Run all examples
```sh
cargo run --examples
```
### run executables
> Run all executables code in the project
```sh
cargo run --bins
```
~~~
2. To run task `run examples`, you can declare the action like:
```yml
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DrSensor/mask-action@v1
with: { commands: run examples }
```
- It's also possible to run multiple tasks:
```yml
- uses: DrSensor/mask-action@v1
with:
commands: |-
run executables
run examples
```
- There is also an option to run them in parallel:
```yml
- uses: DrSensor/mask-action@v1
with:
parallel: true
commands: |-
run executables
run examples
```