Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

ci: speed up e2e (#11053)

Saul-Mironedc5a9ed4a208
diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml
index 8918c52308..78ce827954 100644
--- a/.github/actions/setup-node/action.yml
+++ b/.github/actions/setup-node/action.yml
@@ -13,6 +13,10 @@ inputs:
description: 'Run the install step for Playwright.'
required: false
default: 'false'
+ playwright-platform:
+ description: 'The platform to install Playwright for.'
+ required: false
+ default: 'chromium,webkit'
electron-install:
description: 'Download the Electron binary'
required: false
@@ -172,7 +176,7 @@ runs:
- name: Install Playwright's dependencies
shell: bash
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 }}
env:
PLAYWRIGHT_BROWSERS_PATH: ${{ steps.workspace-path.outputs.workspace_path }}/node_modules/.cache/ms-playwright
diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml
index 5e8b160f42..b662eaa304 100644
--- a/.github/workflows/build-test.yml
+++ b/.github/workflows/build-test.yml
@@ -199,6 +199,7 @@ jobs:
uses: ./.github/actions/setup-node
with:
playwright-install: true
+ playwright-platform: 'chromium'
electron-install: false
full-cache: true
@@ -227,13 +228,14 @@ jobs:
strategy:
fail-fast: false
matrix:
- shard: [1, 2, 3, 4, 5]
+ shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
playwright-install: true
+ playwright-platform: 'chromium'
electron-install: false
full-cache: true
@@ -753,6 +755,7 @@ jobs:
uses: ./.github/actions/setup-node
with:
playwright-install: true
+ playwright-platform: 'chromium'
electron-install: false
hard-link-nm: false