From ec55b9b0b71293b14fdfab2edebae754b7d2834e Mon Sep 17 00:00:00 2001 From: Jonathan Platteau Date: Sun, 9 Jun 2024 22:51:56 +0200 Subject: [PATCH] feat(tests): add label to github actions e2e --- .github/workflows/playwright.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 82f00b07..367dff10 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -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: