Integration test runner as a GitHub status check.
Add a .loki.yml
file to the project root. This file tells loki what commands to run, in what order and where they should be run. Ideally these commands run checks that should pass, such as integration tests or linting.
dir
- this specifies where the commands will be executed
bootstrap
- these commands are executed when cloning the repository
cmd
- these are the actual commands that should indiciate failing/successful builds by their exit codes
# sample .loki.yml
dir: .
bootstrap:
- chmod +x /scripts*.sh
cmd:
- source env/bin/activate
- ./scripts/test
git clone https://github.com/sspbft/loki.git && cd loki
yarn
mv .env.example .env
# edit .env with appropriate details
yarn start
Loki is now listening for webhooks on either process.env.PORT
or 3000
!