Skip to content

Commit 823c895

Browse files
committed
Workflow: Fixed running issues
1 parent 17d21da commit 823c895

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/playwright.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ env:
1111
FRONT_DOOR_USERNAME: ${{ secrets.FRONT_DOOR_USERNAME }}
1212
FRONT_DOOR_PASSWORD: ${{ secrets.FRONT_DOOR_PASSWORD }}
1313
COVEO_CREDENTIALS_BASE_URL: ${{ secrets.COVEO_CREDENTIALS_BASE_URL }}
14+
BROWSERS: "webkit firefox"
1415
jobs:
1516
playwright:
1617
name: Run Playwright
@@ -32,7 +33,6 @@ jobs:
3233
cd tests
3334
version=$(npm list @playwright/test --json | jq -r '.dependencies["@playwright/test"].version')
3435
echo "version=$version" >> $GITHUB_OUTPUT
35-
echo "Version:" $version
3636
- name: Attempt to restore cache
3737
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
3838
id: restore-cache
@@ -43,9 +43,12 @@ jobs:
4343
# Fallback, if version changed, use the most recent cached version.
4444
restore-keys: |
4545
${{ runner.os }}-playwright-
46-
- name: Install playwright dependencies
46+
- name: Install playwright with dependencies
4747
if: steps.restore-cache.outputs.cache-hit != 'true'
48-
run: cd tests && npx playwright install --with-deps
48+
run: cd tests && npx playwright install --with-deps ${{ env.BROWSERS }}
49+
- name: Install playwright dependencies
50+
if: steps.restore-cache.outputs.cache-hit == 'true'
51+
run: cd tests && npx playwright install-deps ${{ env.BROWSERS }}
4952
- name: Run Playwright tests
5053
id: test-ui
5154
run: |

0 commit comments

Comments
 (0)