From 5c6373868cafad2a8d02947c137b0c98f9df89d6 Mon Sep 17 00:00:00 2001 From: Daniel Leroux Date: Mon, 17 Jun 2024 15:52:31 +0200 Subject: [PATCH] ci: fix playwright --- .github/workflows/build.yml | 9 +++++++++ .github/workflows/pr.yml | 9 +++++++++ .github/workflows/update-visual-snapshots.yml | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dd26553ee2..766eb5b9d1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,6 +36,9 @@ jobs: - uses: actions/checkout@v3 - uses: ./.github/workflows/actions/turbo + - name: Install Playwright Browsers + run: pnpm exec playwright install chromium --with-deps + - name: Visual Regression run: pnpm run visual-regression --cache-dir=.turbo --filter @siemens/ix -- --shard ${{ matrix.shard }} @@ -57,6 +60,9 @@ jobs: - uses: actions/checkout@v3 - uses: ./.github/workflows/actions/turbo + - name: Install Playwright Browsers + run: pnpm exec playwright install chromium --with-deps + - name: Visual Regression run: pnpm run visual-regression --cache-dir=.turbo --filter @siemens/ix-aggrid @@ -78,6 +84,9 @@ jobs: - uses: actions/checkout@v3 - uses: ./.github/workflows/actions/turbo + - name: Install Playwright Browsers + run: pnpm exec playwright install chromium --with-deps + - name: Visual Regression run: pnpm run visual-regression --cache-dir=.turbo --filter @siemens/ix-echarts diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 0a6632423d..cb28c4cb91 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -93,6 +93,9 @@ jobs: - uses: actions/checkout@v3 - uses: ./.github/workflows/actions/turbo + - name: Install Playwright Browsers + run: pnpm exec playwright install chromium --with-deps + - name: Visual Regression run: pnpm run visual-regression --cache-dir=.turbo --filter @siemens/ix -- --shard ${{ matrix.shard }} @@ -115,6 +118,9 @@ jobs: - uses: actions/checkout@v3 - uses: ./.github/workflows/actions/turbo + - name: Install Playwright Browsers + run: pnpm exec playwright install chromium --with-deps + - name: Visual Regression run: pnpm run visual-regression --cache-dir=.turbo --filter @siemens/ix-aggrid @@ -137,6 +143,9 @@ jobs: - uses: actions/checkout@v3 - uses: ./.github/workflows/actions/turbo + - name: Install Playwright Browsers + run: pnpm exec playwright install chromium --with-deps + - name: Visual Regression run: pnpm run visual-regression --cache-dir=.turbo --filter @siemens/ix-echarts diff --git a/.github/workflows/update-visual-snapshots.yml b/.github/workflows/update-visual-snapshots.yml index f39cd73798..373906fdea 100644 --- a/.github/workflows/update-visual-snapshots.yml +++ b/.github/workflows/update-visual-snapshots.yml @@ -121,7 +121,7 @@ jobs: run: pnpm build --cache-dir=.turbo --filter @siemens/ix - name: Install Playwright Browsers - run: pnpm playwright install --with-deps + run: pnpm exec playwright install chromium --with-deps - name: Visual Regression run: pnpm --filter @siemens/ix visual-regression ${{ steps.parse-command.outputs.args }} -u