This is the Boomerang Flow Lifecycle Worker that runs as init and sidecar container for the Custom Flow Task or Bring Your Own container task in Flow.
Depends on:
This project is built, tested, and packaged via the Boomerang CICD system hosted and provided by IBM.
VERSION=1.1.0 && docker build -t boomerangio/worker-lifecycle:$VERSION . && docker push boomerangio/worker-lifecycle:$VERSION
Execute boomerang-worker-cli
in local mode. Used for local development.
Execute boomerang-worker-cli
in local and debug mode
Format your code with Prettier
Lint your .js
files with ESLint
Execute boomerang-worker-cli
. Used for execution in worker environment. There are assumptions made about files and directories available.
Execute unit tests with Jest
Execute unit tests with Jest and generate coverage report
Jest is included as a test runner with scripts to execute unit tests and generate code coverage reports.
The template includes configuration for the following:
- Code Formatting via Prettier
- Linting via ESLint
- Precommit hooks via Husky
- Commit standards via Commitlint (not configured by default, but recommended)
Enable commit standards via Conventional Commits by adding the following to your package.json
.
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
}
}
- Make sure that your
commands
directory only includes.js
files that export modules. The CLI will try to register every matching file in it.