mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
ci: use new test option for seeding
This commit is contained in:
parent
951bd75b40
commit
1a433b5033
1 changed files with 2 additions and 18 deletions
20
.github/workflows/main.yml
vendored
20
.github/workflows/main.yml
vendored
|
@ -140,15 +140,7 @@ jobs:
|
||||||
working-directory: ./alteration
|
working-directory: ./alteration
|
||||||
run: |
|
run: |
|
||||||
cd packages/cli
|
cd packages/cli
|
||||||
pnpm start db seed
|
pnpm start db seed --test
|
||||||
env:
|
|
||||||
DB_URL: postgres://postgres:postgres@localhost:5432/alteration
|
|
||||||
|
|
||||||
# FIXME: Last version of CLI doesn't support test data seeding. Here's a temporary workaround.
|
|
||||||
# We will remove this step when a new version of CLI is released.
|
|
||||||
- name: Setup alteration database test data
|
|
||||||
working-directory: ./fresh
|
|
||||||
run: pnpm cli db seed --legacy-test-data
|
|
||||||
env:
|
env:
|
||||||
DB_URL: postgres://postgres:postgres@localhost:5432/alteration
|
DB_URL: postgres://postgres:postgres@localhost:5432/alteration
|
||||||
|
|
||||||
|
@ -169,15 +161,7 @@ jobs:
|
||||||
working-directory: ./alteration
|
working-directory: ./alteration
|
||||||
run: |
|
run: |
|
||||||
cd packages/cli
|
cd packages/cli
|
||||||
pnpm start db seed
|
pnpm start db seed --test
|
||||||
env:
|
|
||||||
DB_URL: postgres://postgres:postgres@localhost:5432/old
|
|
||||||
|
|
||||||
# FIXME: Last version of CLI doesn't support test data seeding. Here's a temporary workaround.
|
|
||||||
# We will remove this step when a new version of CLI is released.
|
|
||||||
- name: Setup old database test data
|
|
||||||
working-directory: ./fresh
|
|
||||||
run: pnpm cli db seed --legacy-test-data
|
|
||||||
env:
|
env:
|
||||||
DB_URL: postgres://postgres:postgres@localhost:5432/old
|
DB_URL: postgres://postgres:postgres@localhost:5432/old
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue