From f31e83fd0375d33e6b0ee1cb8ba95f37f775aeae Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 4 Dec 2023 10:55:57 +0000 Subject: [PATCH] Run matrix-react-sdk playwright tests downstream (#3914) * Run matrix-react-sdk playwright tests downstream Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update .github/workflows/cypress.yml Co-authored-by: R Midhun Suresh --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: R Midhun Suresh --- .github/workflows/cypress.yml | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index d8d14b503..16d1d9597 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -1,7 +1,7 @@ # Triggers after the "Downstream artifacts" build has finished, to run the -# cypress tests (with access to repo secrets) +# matrix-react-sdk playwright & cypress tests (with access to repo secrets) -name: matrix-react-sdk Cypress End to End Tests +name: matrix-react-sdk End to End Tests on: workflow_run: workflows: ["Build downstream artifacts"] @@ -17,10 +17,10 @@ jobs: name: Cypress # We only want to run the cypress tests on merge queue to prevent regressions - # from creeping in. They take a long time to run and consume 4 concurrent runners. + # from creeping in. They take a long time to run and consume multiple concurrent runners. if: github.event.workflow_run.event == 'merge_group' - uses: matrix-org/matrix-react-sdk/.github/workflows/cypress.yaml@4d0a34bb26c179ed709a7e1fd5e63f815b0b96d7 + uses: matrix-org/matrix-react-sdk/.github/workflows/cypress.yaml@develop permissions: actions: read issues: read @@ -35,6 +35,20 @@ jobs: with: react-sdk-repository: matrix-org/matrix-react-sdk + playwright: + name: Playwright + # We only want to run the playwright tests on merge queue to prevent regressions + # from creeping in. They take a long time to run and consume multiple concurrent runners. + if: github.event.workflow_run.event == 'merge_group' + uses: matrix-org/matrix-react-sdk/.github/workflows/end-to-end-tests.yaml@develop + permissions: + actions: read + issues: read + statuses: write + pull-requests: read + with: + react-sdk-repository: matrix-org/matrix-react-sdk + # We want to make the cypress tests a required check for the merge queue. # # Unfortunately, github doesn't distinguish between "checks needed for branch @@ -55,5 +69,13 @@ jobs: authToken: "${{ secrets.GITHUB_TOKEN }}" state: success description: Cypress skipped - context: "${{ github.workflow }} / cypress" + context: "Cypress End to End Tests / cypress" + sha: "${{ github.event.workflow_run.head_sha }}" + + - uses: Sibz/github-status-action@071b5370da85afbb16637d6eed8524a06bc2053e # v1 + with: + authToken: "${{ secrets.GITHUB_TOKEN }}" + state: success + description: Playwright skipped + context: "End to End Tests / end-to-end-tests" sha: "${{ github.event.workflow_run.head_sha }}"