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 (#1605)
* ci: use full repo for integration tests * ci: fix error
This commit is contained in:
parent
53ab064502
commit
8503050379
1 changed files with 17 additions and 15 deletions
32
.github/workflows/integration-test.yml
vendored
32
.github/workflows/integration-test.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue