|
|
@@ -236,6 +236,7 @@ jobs:
|
|
|
run: |
|
|
|
echo "TMPDIR=${{ runner.temp }}" >> "$GITHUB_ENV"
|
|
|
echo "npm_config_cache=${{ runner.temp }}/npm-cache" >> "$GITHUB_ENV"
|
|
|
+ echo "PLAYWRIGHT_BROWSERS_PATH=${RUNNER_TEMP%/*}/ms-playwright" >> "$GITHUB_ENV"
|
|
|
|
|
|
- uses: actions/checkout@v6
|
|
|
with:
|
|
|
@@ -270,11 +271,11 @@ jobs:
|
|
|
restore-keys: |
|
|
|
${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-pnpm-
|
|
|
|
|
|
- # Skipped under failover: the VM's persistent browser cache is already warm.
|
|
|
+ # Self-hosted runners retain their own browser cache between jobs.
|
|
|
- uses: actions/cache/restore@v4
|
|
|
if: vars.DSH_CI_FAILOVER_LINUX != 'selfhosted' || github.event.pull_request.user.login == 'dependabot[bot]'
|
|
|
with:
|
|
|
- path: ~/.cache/ms-playwright
|
|
|
+ path: ${{ env.PLAYWRIGHT_BROWSERS_PATH }}
|
|
|
key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }}
|
|
|
restore-keys: |
|
|
|
${{ runner.os }}-playwright-
|