0
Fork 0
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:
Gao Sun 2024-02-09 00:19:09 +08:00
parent 951bd75b40
commit 1a433b5033
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

@ -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