mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
chore: manually install Chromium before integration test
This commit is contained in:
parent
117b50af7a
commit
3a0df40fc1
1 changed files with 4 additions and 16 deletions
20
.github/workflows/integration-test.yml
vendored
20
.github/workflows/integration-test.yml
vendored
|
@ -18,13 +18,6 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Cache Puppeteer
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
# https://pptr.dev/guides/configuration/#changing-the-default-cache-directory
|
||||
path: ~/.cache/puppeteer
|
||||
key: ${{ runner.os }}-pptr-${{ hashFiles('packages/integration-tests/package.json') }}
|
||||
|
||||
- name: Setup Node and pnpm
|
||||
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
||||
|
||||
|
@ -45,23 +38,15 @@ jobs:
|
|||
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node_version: [16, 18]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
path: tests
|
||||
|
||||
- name: Cache Puppeteer
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
# https://pptr.dev/guides/configuration/#changing-the-default-cache-directory
|
||||
path: ~/.cache/puppeteer
|
||||
key: ${{ runner.os }}-pptr-${{ hashFiles('tests/packages/integration-tests/package.json') }}
|
||||
|
||||
- name: Copy lockfile
|
||||
run: |
|
||||
cp tests/pnpm-lock.yaml ./
|
||||
|
@ -79,6 +64,9 @@ jobs:
|
|||
cd tests
|
||||
pnpm i
|
||||
pnpm prepack
|
||||
# Install Chromium
|
||||
cd packages/integration-tests/node_modules/puppeteer
|
||||
pnpm postinstall
|
||||
|
||||
# Setup environment
|
||||
- name: Setup Postgres
|
||||
|
|
Loading…
Reference in a new issue