mirror of
https://github.com/saltbo/zpan.git
synced 2026-08-29 08:16:58 +08:00
ci: use system chrome for e2e
This commit is contained in:
@@ -58,7 +58,6 @@ jobs:
|
||||
node-version: 24
|
||||
cache: pnpm
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm exec playwright install chromium
|
||||
- name: Install cloudflared
|
||||
run: |
|
||||
curl -L --fail --output cloudflared https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64
|
||||
@@ -83,7 +82,6 @@ jobs:
|
||||
node-version: 24
|
||||
cache: pnpm
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm exec playwright install chromium
|
||||
- name: Install cloudflared
|
||||
run: |
|
||||
curl -L --fail --output cloudflared https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64
|
||||
|
||||
@@ -51,6 +51,7 @@ export default defineConfig({
|
||||
use: {
|
||||
baseURL: process.env.E2E_BASE_URL ?? 'http://localhost:5173',
|
||||
headless: true,
|
||||
channel: process.env.CI ? 'chrome' : undefined,
|
||||
launchOptions: chromeHostResolverRules
|
||||
? { args: [`--host-resolver-rules=${chromeHostResolverRules}`] }
|
||||
: undefined,
|
||||
|
||||
Reference in New Issue
Block a user