Unverified Commit 9688b06c authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[ci] Only install Playwright dependencies for used browser (#87002)

Installs much less via apt.
parent 266f2c7d
......@@ -902,6 +902,7 @@ jobs:
uses: ./.github/workflows/build_reusable.yml
with:
browser: 'firefox webkit'
afterBuild: |
pnpm playwright install
......
......@@ -80,6 +80,11 @@ on:
type: string
default: ''
browser:
description: 'Browser to use for tests'
required: false
type: string
default: 'chromium'
env:
NAPI_CLI_VERSION: 2.18.4
TURBO_VERSION: 2.5.5
......@@ -266,10 +271,7 @@ jobs:
run: pnpm install
if: ${{ inputs.skipInstallBuild != 'yes' }}
- run: pnpm playwright install-deps
if: ${{ inputs.skipInstallBuild != 'yes' }}
- run: pnpm playwright install chromium
- run: pnpm playwright install --with-deps ${{ inputs.browser }}
if: ${{ inputs.skipInstallBuild != 'yes' }}
- run: pnpm dlx turbo@${TURBO_VERSION} run get-test-timings -- --build ${{ github.sha }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment