Skip to content

Commit

Permalink
ci: 🤖 skip playwright browser install if cache hits
Browse files Browse the repository at this point in the history
  • Loading branch information
yjaaidi committed Dec 5, 2023
1 parent 09510bb commit eb2bf0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
node-version: 20

- name: Cache Playwright Browsers
id: cache-playwright-browsers
uses: actions/cache@v3
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ github.sha }}
restore-keys: ${{ runner.os }}-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/pnpm-lock.json') }}

- name: Cache Nx
uses: actions/cache@v3
Expand All @@ -46,6 +46,7 @@ jobs:
- run: pnpm install

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

- run: pnpm nx run-many --parallel=4 -t build,lint,test,test-ui
Expand Down

0 comments on commit eb2bf0d

Please sign in to comment.