1
1
# Triggers after the "Downstream artifacts" build has finished, to run the
2
- # matrix-react-sdk playwright & cypress tests (with access to repo secrets)
2
+ # matrix-react-sdk playwright tests (with access to repo secrets)
3
3
4
4
name : matrix-react-sdk End to End Tests
5
5
on :
@@ -13,28 +13,6 @@ concurrency:
13
13
cancel-in-progress : ${{ github.event.workflow_run.event == 'pull_request' }}
14
14
15
15
jobs :
16
- cypress :
17
- name : Cypress
18
-
19
- # We only want to run the cypress tests on merge queue to prevent regressions
20
- # from creeping in. They take a long time to run and consume multiple concurrent runners.
21
- if : github.event.workflow_run.event == 'merge_group'
22
-
23
- uses : matrix-org/matrix-react-sdk/.github/workflows/cypress.yaml@develop
24
- permissions :
25
- actions : read
26
- issues : read
27
- statuses : write
28
- pull-requests : read
29
- secrets :
30
- # secrets are not automatically shared with called workflows, so share the cypress dashboard key, and the Kiwi login details
31
- KNAPSACK_PRO_TEST_SUITE_TOKEN_CYPRESS_RUST : ${{ secrets.KNAPSACK_PRO_TEST_SUITE_TOKEN_CYPRESS_RUST}}
32
- KNAPSACK_PRO_TEST_SUITE_TOKEN_CYPRESS_LEGACY : ${{ secrets.KNAPSACK_PRO_TEST_SUITE_TOKEN_CYPRESS_LEGACY}}
33
- TCMS_USERNAME : ${{ secrets.TCMS_USERNAME }}
34
- TCMS_PASSWORD : ${{ secrets.TCMS_PASSWORD }}
35
- with :
36
- react-sdk-repository : matrix-org/matrix-react-sdk
37
-
38
16
playwright :
39
17
name : Playwright
40
18
# We only want to run the playwright tests on merge queue to prevent regressions
@@ -50,33 +28,21 @@ jobs:
50
28
with :
51
29
react-sdk-repository : matrix-org/matrix-react-sdk
52
30
53
- # We want to make the cypress tests a required check for the merge queue.
31
+ # We want to make the Playwright tests a required check for the merge queue.
54
32
#
55
- # Unfortunately, github doesn't distinguish between "checks needed for branch
33
+ # Unfortunately, GitHub doesn't distinguish between "checks needed for branch
56
34
# protection" (ie, the things that must pass before the PR will even be added
57
35
# to the merge queue) and "checks needed in the merge queue". We just have to add
58
36
# the check to the branch protection list.
59
37
#
60
- # Ergo, if we know we're not going to run the cypress tests, we need to add a
38
+ # Ergo, if we know we're not going to run the Playwright tests, we need to add a
61
39
# passing status check manually.
62
40
mark_skipped :
63
41
if : github.event.workflow_run.event != 'merge_group'
64
42
permissions :
65
43
statuses : write
66
44
runs-on : ubuntu-latest
67
45
steps :
68
- - uses : Sibz/github-status-action@071b5370da85afbb16637d6eed8524a06bc2053e # v1
69
- with :
70
- authToken : " ${{ secrets.GITHUB_TOKEN }}"
71
- state : success
72
- description : Cypress skipped
73
-
74
- # Keep in step with the `context` that is updated by `Sibz/github-status-action`
75
- # in matrix-org/matrix-react-sdk/.github/workflows/cypress.yaml.
76
- context : " ${{ github.workflow }} / cypress"
77
-
78
- sha : " ${{ github.event.workflow_run.head_sha }}"
79
-
80
46
- uses : Sibz/github-status-action@071b5370da85afbb16637d6eed8524a06bc2053e # v1
81
47
with :
82
48
authToken : " ${{ secrets.GITHUB_TOKEN }}"
0 commit comments