ci: speed up e2e (#11053)

This commit is contained in:
Saul-Mirone
2025-03-21 04:53:31 +00:00
parent bdd547d8db
commit dc5a9ed4a2
2 changed files with 9 additions and 2 deletions
+5 -1
View File
@@ -13,6 +13,10 @@ inputs:
description: 'Run the install step for Playwright.' description: 'Run the install step for Playwright.'
required: false required: false
default: 'false' default: 'false'
playwright-platform:
description: 'The platform to install Playwright for.'
required: false
default: 'chromium,webkit'
electron-install: electron-install:
description: 'Download the Electron binary' description: 'Download the Electron binary'
required: false required: false
@@ -172,7 +176,7 @@ runs:
- name: Install Playwright's dependencies - name: Install Playwright's dependencies
shell: bash shell: bash
if: inputs.playwright-install == 'true' if: inputs.playwright-install == 'true'
run: yarn playwright install --with-deps chromium webkit run: yarn playwright install --with-deps $(echo "${{ inputs.playwright-platform }}" | tr ',' ' ')
working-directory: ${{ steps.workspace-path.outputs.workspace_path }} working-directory: ${{ steps.workspace-path.outputs.workspace_path }}
env: env:
PLAYWRIGHT_BROWSERS_PATH: ${{ steps.workspace-path.outputs.workspace_path }}/node_modules/.cache/ms-playwright PLAYWRIGHT_BROWSERS_PATH: ${{ steps.workspace-path.outputs.workspace_path }}/node_modules/.cache/ms-playwright
+4 -1
View File
@@ -199,6 +199,7 @@ jobs:
uses: ./.github/actions/setup-node uses: ./.github/actions/setup-node
with: with:
playwright-install: true playwright-install: true
playwright-platform: 'chromium'
electron-install: false electron-install: false
full-cache: true full-cache: true
@@ -227,13 +228,14 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
shard: [1, 2, 3, 4, 5] shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup Node.js - name: Setup Node.js
uses: ./.github/actions/setup-node uses: ./.github/actions/setup-node
with: with:
playwright-install: true playwright-install: true
playwright-platform: 'chromium'
electron-install: false electron-install: false
full-cache: true full-cache: true
@@ -753,6 +755,7 @@ jobs:
uses: ./.github/actions/setup-node uses: ./.github/actions/setup-node
with: with:
playwright-install: true playwright-install: true
playwright-platform: 'chromium'
electron-install: false electron-install: false
hard-link-nm: false hard-link-nm: false