From 3e24e3b404b626b5cde043a632c27e1ebd7fe1f1 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Sat, 8 Oct 2022 17:12:19 +0800 Subject: [PATCH] refactor: fix integration test --- .github/workflows/integration-test.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 113c2a46f..562ed98ed 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -83,13 +83,19 @@ jobs: - name: Extract run: tar -xzf logto.tar.gz - - name: Run Logto - run: node . --from-root --all-yes & + - name: Seed database working-directory: logto/packages/core + run: | + npm run cli db set-url postgres://postgres:postgres@localhost:5432 + npm run cli db seed + + - name: Run Logto + working-directory: logto/packages/core + run: node . --from-root --all-yes & env: INTEGRATION_TEST: true NODE_ENV: production - DB_URL_DEFAULT: postgres://postgres:postgres@localhost:5432 + DB_URL: postgres://postgres:postgres@localhost:5432 - name: Sleep for 5 seconds run: sleep 5