https://github.com/rjoydip/drunner
[EXPERIMENT] Deno task runner for automation pipelines script sequential task workflow steps in yaml conditional execution, loops, error handling & retries
https://github.com/rjoydip/drunner
deno yml
Last synced: about 2 months ago
JSON representation
[EXPERIMENT] Deno task runner for automation pipelines script sequential task workflow steps in yaml conditional execution, loops, error handling & retries
- Host: GitHub
- URL: https://github.com/rjoydip/drunner
- Owner: rjoydip
- License: mit
- Created: 2022-09-08T06:30:24.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-08T06:30:32.000Z (almost 4 years ago)
- Last Synced: 2025-03-30T16:25:47.795Z (about 1 year ago)
- Topics: deno, yml
- Language: TypeScript
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# drunner


> Deno task runner for automation pipelines script sequential task workflow steps in yaml conditional execution, loops, error handling & retries.
## Install
```sh
deno install --allow-run --allow-read -f -n drunner https://raw.githubusercontent.com/rjoydip/drunner/master/cli.ts
```
## Usage CLI
```sh
drunner runner.yaml
```
## Run locally
```sh
deno run --allow-run --allow-read --unstable cli.ts test/runner.yaml
```
## Arguments
- **`--noColor` - (Default: `true`)** - No colored output
- **`--pretty` - (Default: `false`)** - No format
- **`--prefix` - (Default: `name`)** - Steps name will display with `--pretty`
## Example
```yml
name: Test runner
variables:
hello: world
pwd: /test
jobs:
job1:
steps:
- name: Test
description: Test description
with:
version: t1.0.0.0000
run: echo "Test version $version"
- name: Build
description: Build description
with:
version: b1.0.0.0000
run: |
echo "Build version $version and $pwd"
job2:
steps:
- name: Deploy
description: Deploy description
with:
version: v1.0.0
run: |
echo "Deploy version $version"
echo "multiline"
- name: Echo sh
description: Run example sh file
run: sh ./echo.sh
- name: No return
description: Golang version desc
run:
script: echo "No return"
return: false
job3:
steps:
- name: Deno version
description: Deno version desc
run: deno --version
- name: Node.js version
description: Node.js version desc
run: node --version
```