From 16a01d834f298042eb5a05b0c1d2bf7f481ab921 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 30 Apr 2024 10:28:29 +0100 Subject: [PATCH] Update end-to-end-tests.yaml --- .github/workflows/end-to-end-tests.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/end-to-end-tests.yaml b/.github/workflows/end-to-end-tests.yaml index 08b0ed473f..ab7a0e154d 100644 --- a/.github/workflows/end-to-end-tests.yaml +++ b/.github/workflows/end-to-end-tests.yaml @@ -14,6 +14,12 @@ on: # support triggering from other workflows workflow_call: inputs: + skip: + type: boolean + required: false + default: false + description: "A boolean to skip the playwright check itself while still creating the passing check. Useful when only running in Merge Queues." + react-sdk-repository: type: string required: true @@ -86,6 +92,7 @@ jobs: playwright: name: "Run Tests ${{ matrix.runner }}/${{ strategy.job-total }}" needs: build + if: inputs.skip != true runs-on: ubuntu-latest permissions: actions: read @@ -153,6 +160,7 @@ jobs: complete: name: end-to-end-tests needs: playwright + if: always() && !failure() && !cancelled() runs-on: ubuntu-latest steps: - run: echo "All tests passed!"