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: ...@@ -902,6 +902,7 @@ jobs:
uses: ./.github/workflows/build_reusable.yml uses: ./.github/workflows/build_reusable.yml
with: with:
browser: 'firefox webkit'
afterBuild: | afterBuild: |
pnpm playwright install pnpm playwright install
......
...@@ -80,6 +80,11 @@ on: ...@@ -80,6 +80,11 @@ on:
type: string type: string
default: '' default: ''
browser:
description: 'Browser to use for tests'
required: false
type: string
default: 'chromium'
env: env:
NAPI_CLI_VERSION: 2.18.4 NAPI_CLI_VERSION: 2.18.4
TURBO_VERSION: 2.5.5 TURBO_VERSION: 2.5.5
...@@ -266,10 +271,7 @@ jobs: ...@@ -266,10 +271,7 @@ jobs:
run: pnpm install run: pnpm install
if: ${{ inputs.skipInstallBuild != 'yes' }} if: ${{ inputs.skipInstallBuild != 'yes' }}
- run: pnpm playwright install-deps - run: pnpm playwright install --with-deps ${{ inputs.browser }}
if: ${{ inputs.skipInstallBuild != 'yes' }}
- run: pnpm playwright install chromium
if: ${{ inputs.skipInstallBuild != 'yes' }} if: ${{ inputs.skipInstallBuild != 'yes' }}
- run: pnpm dlx turbo@${TURBO_VERSION} run get-test-timings -- --build ${{ github.sha }} - 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