Skip to content

Commit

Permalink
created job for migrating db and setting empty db
Browse files Browse the repository at this point in the history
  • Loading branch information
dzgierski19 committed Jun 6, 2024
1 parent 0c9e8b1 commit 6013b00
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ on:
- dev

jobs:
# services:
# postgres:
# image: postgres:latest
# ports:
# - 5432:5432
# env:
# POSTGRES_DB: testdb
# POSTGRES_USER: testuser
# POSTGRES_PASSWORD: testpassword
# options: >-
# --health-cmd="pg_isready -U $${POSTGRES_USER}"
# --health-interval=10s
# --health-timeout=5s
# --health-retries=5

build:
runs-on: ${{ matrix.os }}

Expand All @@ -27,5 +42,10 @@ jobs:
- name: Run unit tests
run: npm run test

- name: Run database migrations
run: npm run migrations

- name: Run e2e tests
run: npm run test:e2e
env:
DATABASE_URL: postgres://testuser:testpassword@localhost:5432/testdb

0 comments on commit 6013b00

Please sign in to comment.