Unverified Commit eb9b1dad authored by Benjamin Woodruff's avatar Benjamin Woodruff Committed by GitHub

[ci] Remove playwright stamp file logic (#94876)

This is left over from self-hosted runners. This should never be used in
gh hosted runners.
parent 723c0620
...@@ -327,27 +327,7 @@ jobs: ...@@ -327,27 +327,7 @@ jobs:
- name: Install Playwright browsers - name: Install Playwright browsers
if: ${{ inputs.skipInstallBuild != 'yes' && inputs.needsPlaywright != 'no' }} if: ${{ inputs.skipInstallBuild != 'yes' && inputs.needsPlaywright != 'no' }}
run: | run: pnpm playwright install --with-deps ${{ inputs.browser }}
PW_VERSION=$(pnpm playwright --version 2>/dev/null || echo "unknown")
CACHE_DIR="$HOME/.cache"
VERSION_FILE="$CACHE_DIR/playwright-version"
STAMP="$CACHE_DIR/playwright-deps-$(echo "${{ inputs.browser }}" | tr ' ' '-')"
# Clear stamp files when Playwright version changes
if [ -f "$VERSION_FILE" ] && [ "$(cat "$VERSION_FILE")" != "$PW_VERSION" ]; then
echo "Playwright version changed ($(cat "$VERSION_FILE") -> $PW_VERSION), clearing stamps"
rm -f "$CACHE_DIR"/playwright-deps-*
fi
mkdir -p "$CACHE_DIR"
echo "$PW_VERSION" > "$VERSION_FILE"
if [ -f "$STAMP" ]; then
pnpm playwright install ${{ inputs.browser }}
else
pnpm playwright install --with-deps ${{ inputs.browser }}
touch "$STAMP"
fi
- name: Download pre-built test timings - name: Download pre-built test timings
if: ${{ inputs.testTimingsArtifact != '' }} if: ${{ inputs.testTimingsArtifact != '' }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment