Warning
This guide is a work in progress and may not be complete.
This is a basic contributing guide and is a work in progress.
- 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 run 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!
Currently, the test is in test.yaml and works on the push event.
You can either test on GitHub by enabling this workflow, or locally using act.
In both cases, you will need to have the secrets added either to GitHub or the .secrets
file.
You will need to add your secrets to GitHub Actions Secrets.
When you push your branch to your repository, the test.yaml should run...
To run actions locally you need to install act: https://nektosact.com/installation/index.html
You will need to add your secrets to a .secrets
file in env file format.
npm install
npm run build:watch
act -j test -e event.json
To print your secrets in plan text (insecure) use --insecure-secrets
To see all available jobs run act -l
and see act --help
For more information see the documentation: https://nektosact.com/usage/index.html