diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 2a8b1a0d4..485d28d80 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -1,5 +1,11 @@ name: Playwright Tests -on: workflow_call +on: + workflow_call: + inputs: + test_script: + required: false + type: string + default: npm run update-snapshots jobs: acceptance: @@ -20,7 +26,7 @@ jobs: uses: actions/checkout@v3 - uses: ./.github/setup-acceptance - - run: npm run update-snapshots -- --shard=${{ matrix.shard }}/4 + - run: ${{ inputs.test_script }} -- --shard=${{ matrix.shard }}/4 working-directory: e2e-tests - uses: actions/upload-artifact@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 10b316479..1ff0e913f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,3 +72,10 @@ jobs: needs: check-for-release if: needs.check-for-release.outputs.status == 'success' uses: ./.github/workflows/run-tests.yml + + run-acceptance: + needs: check-for-release + if: needs.check-for-release.outputs.status == 'success' + uses: ./.github/workflows/playwright.yml + with: + test_script: npm run playwright