diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index bdb1fb9..0bcb0b2 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -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