mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
refactor: fix integration test
This commit is contained in:
parent
aba872ea4b
commit
3e24e3b404
1 changed files with 9 additions and 3 deletions
12
.github/workflows/integration-test.yml
vendored
12
.github/workflows/integration-test.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue