Skip to content

Commit

Permalink
ci: Added playwright cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Joery-M committed Apr 22, 2024
1 parent 1ebb9c0 commit 34bacfe
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,25 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Playwright Browsers
- name: Get installed Playwright version
id: playwright-version
run: echo "::set-output name=version::$(pnpm ls -r | grep playwright | sed 's/.* //')"

- uses: actions/cache@v3
name: Setup playwright cache
id: playwright-cache
with:
path: '~/.cache/ms-playwright'
key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
restore-keys: |
${{ runner.os }}-playwright-
- name: Install Playwright's dependencies
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps

- name: Install dependencies
run: pnpm install
run: pnpm install --ignore-scripts

- name: Build Darkroom
run: pnpm build:darkroom
Expand Down

0 comments on commit 34bacfe

Please sign in to comment.