From 14a80315e92291e5709d55e3bb4093a7415dc915 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Fri, 7 Feb 2025 17:13:29 +0100 Subject: [PATCH] test: use a base image for playwright --- .github/workflows/playwright.yml | 10 ++++++---- examples/common/config-e2e.ts | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 487f826e..0fee0661 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -9,6 +9,11 @@ jobs: test: timeout-minutes: 30 runs-on: ubuntu-latest + container: + # https://mcr.microsoft.com/en-us/artifact/mar/playwright/tags + # https://playwright.dev/docs/ci#via-containers + image: mcr.microsoft.com/playwright:v1.50.1-noble + steps: - name: Check out code uses: actions/checkout@v4 @@ -16,10 +21,7 @@ jobs: - name: Install Dependencies uses: ./.github/actions/install-dependencies - - name: Install Playwright - run: pnpm run install-playwright - - - name: Build the tool + - name: Build the adapter run: pnpm build - name: Build all workers diff --git a/examples/common/config-e2e.ts b/examples/common/config-e2e.ts index 5ddb9d44..694c8942 100644 --- a/examples/common/config-e2e.ts +++ b/examples/common/config-e2e.ts @@ -24,7 +24,7 @@ export function configurePlaywright( if (isCI) { // Do not build on CI - there is a preceding build step command = `pnpm wrangler dev --port ${port} --inspector-port ${inspectorPort}`; - timeout = 100_000; + timeout = 500_000; } else { timeout = 500_000; command = `pnpm preview --port ${port} --inspector-port ${inspectorPort}`;