From fb4700941d107ddac00dc7258c587ae0988ee141 Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Thu, 30 Nov 2023 23:36:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20ci:=20Use=20self-hosted=20runner?= =?UTF-8?q?=20for=20E2E=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 11 ++++++----- wallets/metamask/playwright.config.ts | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b2b21db0b..fb337140b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,7 @@ jobs: test-e2e-headful: name: Run E2E tests (headful) - runs-on: ubuntu-latest + runs-on: self-hosted steps: - uses: actions/checkout@v3 @@ -41,10 +41,11 @@ jobs: - name: Build project run: pnpm run build - - name: Install linux dependencies - run: | - sudo apt-get install --no-install-recommends -y \ - xvfb + # Skipping this for now, `xvfb` is already installed on the self-hosted runner. + #- name: Install linux dependencies + # run: | + # sudo apt-get install --no-install-recommends -y \ + # xvfb - name: Build project run: pnpm run build diff --git a/wallets/metamask/playwright.config.ts b/wallets/metamask/playwright.config.ts index 0994ed0a0..f70574ad0 100644 --- a/wallets/metamask/playwright.config.ts +++ b/wallets/metamask/playwright.config.ts @@ -18,10 +18,10 @@ export default defineConfig({ forbidOnly: !!process.env.CI, // Fail all remaining tests on CI after the first failure. We want to reduce the feedback loop on CI to minimum. - maxFailures: process.env.CI ? 1 : 0, + maxFailures: process.env.CI ? 0 : 0, // Opt out of parallel tests on CI since it supports only 1 worker. - workers: process.env.CI ? 1 : undefined, + workers: process.env.CI ? undefined : undefined, // Concise 'dot' for CI, default 'html' when running locally. // See https://playwright.dev/docs/test-reporters.