Skip to content

Commit

Permalink
Don't cache Playwright binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
silvenon committed Mar 30, 2024
1 parent b4e1ff6 commit eda2d83
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,7 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Add environment variables
run: |
echo "NODE_VERSION=$(node --version)" >> $GITHUB_ENV
npm list @playwright/test --depth=0 --json > npm-list-playwright.json
echo "PLAYWRIGHT_VERSION=$(node --print "require('./npm-list-playwright.json').dependencies['@playwright/test'].version")" >> $GITHUB_ENV
- name: Cache binaries
uses: actions/cache@v3
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: os-${{ runner.os }}-node-${{ env.NODE_VERSION }}-playwright-v${{ env.PLAYWRIGHT_VERSION }}

- name: Install browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps

- name: Build app
Expand Down

0 comments on commit eda2d83

Please sign in to comment.