You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
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 <hi@midhun.dev> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: R Midhun Suresh <hi@midhun.dev>
This commit is contained in:
committed by
GitHub
parent
b515cdbdbb
commit
f31e83fd03
32
.github/workflows/cypress.yml
vendored
32
.github/workflows/cypress.yml
vendored
@@ -1,7 +1,7 @@
|
|||||||
# Triggers after the "Downstream artifacts" build has finished, to run the
|
# 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:
|
on:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: ["Build downstream artifacts"]
|
workflows: ["Build downstream artifacts"]
|
||||||
@@ -17,10 +17,10 @@ jobs:
|
|||||||
name: Cypress
|
name: Cypress
|
||||||
|
|
||||||
# We only want to run the cypress tests on merge queue to prevent regressions
|
# 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'
|
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:
|
permissions:
|
||||||
actions: read
|
actions: read
|
||||||
issues: read
|
issues: read
|
||||||
@@ -35,6 +35,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
react-sdk-repository: matrix-org/matrix-react-sdk
|
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.
|
# We want to make the cypress tests a required check for the merge queue.
|
||||||
#
|
#
|
||||||
# Unfortunately, github doesn't distinguish between "checks needed for branch
|
# Unfortunately, github doesn't distinguish between "checks needed for branch
|
||||||
@@ -55,5 +69,13 @@ jobs:
|
|||||||
authToken: "${{ secrets.GITHUB_TOKEN }}"
|
authToken: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
state: success
|
state: success
|
||||||
description: Cypress skipped
|
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 }}"
|
sha: "${{ github.event.workflow_run.head_sha }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user