From 85137ff929f96c9ecd93cbfb996b0fdbb35f3d6c Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 20 Sep 2026 16:40:40 +0800 Subject: [PATCH] chore(ci): skip Playwright browser installation --- .github/workflows/test.yml | 3 --- rstack.config.ts | 12 ++++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f77b864..5ab500f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,8 +37,5 @@ jobs: with: run_install: true - - name: Install Playwright - run: pnpm exec playwright install chromium - - name: Run Test run: node --run test diff --git a/rstack.config.ts b/rstack.config.ts index 41566b2..c57fd4d 100644 --- a/rstack.config.ts +++ b/rstack.config.ts @@ -20,3 +20,15 @@ define.lint(({ js, ts }) => [ js.configs.recommended, ts.configs.recommendedTypeChecked, ]); + +define.test(async () => { + const { definePlaywrightConfig } = await import('@rstest/playwright/config'); + return { + extends: definePlaywrightConfig({ + launchOptions: { + // Skip installing Playwright browsers + channel: 'chrome', + }, + }), + }; +});