File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 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"
1415jobs :
1516 playwright :
1617 name : Run Playwright
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
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 : |
You can’t perform that action at this time.
0 commit comments