0
Fork 0
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:
Gao Sun 2022-11-07 23:11:21 +08:00
parent 117b50af7a
commit 3a0df40fc1
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

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