Email verification #94
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: Run Bun Tests | |
on: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
DATABASE_PRISMA_URL: postgres://user:password@localhost:5432/test_db | |
services: | |
postgres: | |
image: postgres:15 | |
env: | |
POSTGRES_USER: user | |
POSTGRES_PASSWORD: password | |
POSTGRES_DB: test_db | |
ports: | |
- 5432:5432 | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: 1.1.27 | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Apply database schema | |
run: bun db:push | |
- name: Run tests | |
run: bun test |