Skip to content

Commit

Permalink
feat(tests): add label to github actions e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
flibustier committed Jun 9, 2024
1 parent fe23929 commit ec55b9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ jobs:
run: yarn playwright install --with-deps
- name: Build for preview
run: yarn build
- name: Run Playwright tests
- name: Run Playwright tests and update snapshots
if: contains(github.event.pull_request.labels.*.name, 'update snapshots')
run: yarn test:e2e --update-snapshots
- name: Run Playwright tests
if: ${{ !contains(github.event.pull_request.labels.*.name, 'update snapshots') }}
run: yarn test:e2e
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down

0 comments on commit ec55b9b

Please sign in to comment.