Skip to content

Commit

Permalink
test: update e2e snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
shootermv committed Dec 31, 2024
1 parent 12b6849 commit c804874
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ jobs:
- name: Install dependencies
run: npm install -g pnpm && pnpm install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run Playwright tests
run: pnpm exec playwright test --ignore-snapshots
- name: Install deps
run: |
pnpm install
pnpm exec playwright install
- name: Set up cache
id: cache
uses: actions/cache@v4
with:
key: cache/${{github.repository}}/${{github.ref}}
restore-keys: cache/${{github.repository}}/refs/heads/master
path: .test/**

- name: Initialize snapshots
if: ${{steps.cache.outputs.cache-hit != 'true'}}
run: pnpm exec playwright test --update-snapshots

- name: Test
run: pnpm exec playwright test

0 comments on commit c804874

Please sign in to comment.