0
Fork 0
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:
Gao Sun 2022-10-08 17:12:19 +08:00
parent aba872ea4b
commit 3e24e3b404
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

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