From b56b1d5b2cde8611852b4b1536d91dada4bf40f6 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Thu, 13 Jul 2023 10:11:17 -0500 Subject: [PATCH] ci: run playwright tests directly in docker image --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44169da7b..f936d428a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,8 +61,6 @@ jobs: run: | npm ci npm run build-storybook - - name: Install browsers - run: npx playwright install --with-deps - name: Run storybook id: storybook run: | @@ -72,7 +70,9 @@ jobs: sleep 5 working-directory: docs/storybook - name: Run Visual Regression Tests - run: npx playwright test --shard="${{ matrix.shard }}/${{ strategy.job-total }}" + uses: docker://mcr.microsoft.com/playwright:v1.34.3-jammy + with: + args: npx playwright test --shard="${{ matrix.shard }}/${{ strategy.job-total }}" - name: Stop storybook run: kill ${{ steps.storybook.outputs.pid }} - name: Upload report