0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-04-14 23:11:31 -05:00

ci: use full repo for integration tests ()

* ci: use full repo for integration tests

* ci: fix error
This commit is contained in:
Gao Sun 2022-07-19 22:02:08 +08:00 committed by GitHub
parent 53ab064502
commit 8503050379
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v1.2.2
uses: silverhand-io/actions-node-pnpm-run-steps@v1.2.3
- name: Package
run: ./package.sh
@ -42,22 +42,24 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
path: tmp/
path: tests
- uses: actions/setup-node@v3
with:
node-version: 16
# Setup integration test package
- name: Extract integration test package
- name: Copy lockfile
run: |
mv tmp/packages/integration-tests /tmp
rm -rf tmp
cp tests/pnpm-lock.yaml ./
cp tests/package.json ./
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v1.2.3
with:
run-install: false
# Setup integration test
- name: Install dependencies
run: |
cd /tmp/integration-tests
npm i
mv tests /tmp/tests
cd /tmp/tests
pnpm i
# Setup environment
- name: Start Postgres (Linux)
@ -96,8 +98,8 @@ jobs:
# Test
- name: Run tests
run: |
cd /tmp/integration-tests
npm start
cd /tmp/tests/packages/integration-tests
pnpm start
env:
NODE_ENV: integration-test
LOGTO_URL: http://localhost:3001