Skip to content

Commit

Permalink
test: seperate migration steps
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Dec 6, 2023
1 parent 1a66939 commit 96cb3dc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/cli.test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,19 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Api db migrate
run: yarn api prisma-migrate dev --name init
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/delegator?schema=public"

- name: Delegator db migrate
run: yarn delegator prisma-migrate dev --name init
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/orakl?schema=public"

- name: Run delegator
run: |
yarn delegator build
yarn delegator prisma-migrate dev --name init
yarn delegator start &
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/delegator?schema=public"
Expand All @@ -50,7 +59,6 @@ jobs:
- name: Run api
run: |
yarn api build
yarn api prisma-migrate dev --name init
yarn api start &
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/orakl?schema=public"
Expand Down

0 comments on commit 96cb3dc

Please sign in to comment.