Warning
This guide is a work in progress and may not be complete.
You should be using an IDE, otherwise start there...
Formatting:
- Black (.py)
- Prettier (.yml;.yaml;.json;.md)
Linting:
- ESLint (.js;.mjs)
- Fork the repository.
- Create a branch in your fork!
- Run:
npm install
- Make your changes.
- Build or watch:
npm run build:watch
- Test your changes.
- Ensure changes are built:
npm build
- Commit and push your changes (including
dist
). - Create a PR to this repository.
- Verify the tests pass, otherwise resolve.
- Make sure to keep your branch up-to-date.
GitHub is easier to set up, but you have to push your commits to test.
Running locally is harder to set up, but it is much easier to test; and by far recommended!
When you push your branch and create a PR, then the test.yaml should run...
To run actions locally you need to install act: https://nektosact.com/installation/index.html
- Create a
.secrets
file with:GITHUB_TOKEN="ghp_xxx"
npm install
npm run build:watch
act -j test -e event.json
To see all available jobs run: act -l