fix: capture exceptions with sentry #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: bitnami/postgresql:13.16.0 | |
env: | |
POSTGRES_USER: docker | |
POSTGRES_PASSWORD: docker | |
POSTGRES_DB: event-booster-test | |
ports: | |
- 5433:5432 | |
redis: | |
image: bitnami/redis:latest | |
env: | |
REDIS_PASSWORD: redis | |
ports: | |
- 6379:6379 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Bun | |
run: | | |
curl -fsSL https://bun.sh/install | bash | |
echo "$HOME/.bun/bin" >> $GITHUB_PATH | |
- name: Install dependencies | |
run: bun install | |
- name: Run migrations | |
run: bun run pretest | |
- name: Execute tests | |
run: bun run test | |
- name: Execute test coverage | |
run: bun run test:coverage |