Skip to content

Commit

Permalink
(chore) O3-3968: Cache playwright browsers install step in E2E workflow(
Browse files Browse the repository at this point in the history
  • Loading branch information
virajwathsalag authored Sep 10, 2024
1 parent d512d28 commit 149aba1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,25 @@ jobs:
node-version: 18

- name: Cache dependencies
id: cache
id: cache-dependencies
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: yarn install --immutable

- name: Cache Playwright browsers
id: cache-playwright
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }}

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

- name: Build app
Expand Down

0 comments on commit 149aba1

Please sign in to comment.