async-workflow
Run JSON based workflows
Example
const Bluebird = const Runner = const runner = startTaskId: 'clone' tasks: clone: { return Bluebird } options: repo: 'knownasilya/async-workflow' successTaskId: 'install' failureTaskId: 'cleanup' install: // Run in parallel tasks: installA: { return { } } installB: { return { } } // Run once all pass or any fail successTaskId: 'test' failureTaskId: 'cleanup' test: { return Bluebird } successTaskId: 'deploy' failureTaskId: 'cleanup' deploy: { return Bluebird } cleanup: { return Bluebird } const results = await runnerstart
TODO
- Test parallel tasks
- Figure out how results should be formatted/passed along
- Time tasks
- docker shell run