HackerNews Telegram Bot
To develop in local just run deno task dev that will start in watch mode.
To update the changelog just run git-cliff -o CHANGELOG.md.
Pass the necessary environment variables to run against test mode!
- APP_ENV=test
- SUPABASE_KEY=your_key
- SUPABASE_SCHEMA=test
- SUPABASE_URL=your_url
Put all tests under this folder and run deno task test, which will run test environment with Deno in watch mode.
You must pass at least the following environment variables to make testing work:
- APP_ENV
- SUPABASE_URL
- SUPABASE_KEY
Note: this is a temporary workaround until conversations plugin is fixed
When running tests on a composer that involves conversation, always add await new Promise(r => setTimeout(r, 0)), so it doesn't lead to
deno leaks due to sanitizers.
This project is made by mainly following BDD principles, so you should stick to it, you won't regret.
- Open a Pull Request on
masterbranch. - Tag version from local then push (adheres to
semver) - Bump changelog with
git-cliff --bump - Wait approval of PR, in case of merge it will be officially released.
It's handled with GitHub Actions, with two workflows:
- deploy.yml
- 3 jobs: test, coverage, deploy
- update.yml: external GH Action that acts like dependabot but for deno