Skip to content

Commit

Permalink
test(e2e): cypress parallelization (#3166)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart authored Sep 12, 2023
1 parent afabd13 commit ec7b821
Show file tree
Hide file tree
Showing 11 changed files with 30,625 additions and 20,728 deletions.
8 changes: 8 additions & 0 deletions .github/actions/e2e-atomic/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ inputs:
spec:
description: Specify the spec files to run
required: true
SPLIT:
description: Amount of split
required: true
SPLIT_INDEX:
description: Index of the split
required: true
runs:
using: composite
steps:
Expand All @@ -23,6 +29,8 @@ runs:
record: false
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
SPLIT: ${{ inputs.SPLIT }}
SPLIT_INDEX: ${{ inputs.SPLIT_INDEX }}
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/masterbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,15 @@ jobs:
strategy:
fail-fast: false
matrix:
spec: [
'cypress/e2e/*',
'cypress/e2e/result-list/**/*',
'cypress/e2e/facets/**/*',
'cypress/e2e/search-box/**/*',
'cypress/e2e/recommendations/**/*',
]
containers: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- uses: ./.github/actions/e2e-atomic
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
spec: ${{ matrix.spec }}
SPLIT: ${{ strategy.job-total }}
SPLIT_INDEX: ${{ strategy.job-index }}
e2e-atomic-screenshots:
name: 'Run e2e screenshots tests on Atomic'
needs: build
Expand Down
71 changes: 64 additions & 7 deletions .github/workflows/prbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,77 @@ jobs:
strategy:
fail-fast: false
matrix:
spec:
containers:
[
'cypress/e2e/*',
'cypress/e2e/result-list/**/*',
'cypress/e2e/facets/**/*',
'cypress/e2e/search-box/**/*',
'cypress/e2e/recommendations/**/*',
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60
]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- uses: ./.github/actions/e2e-atomic
with:
spec: ${{ matrix.spec }}
github-token: ${{ secrets.GITHUB_TOKEN }}
SPLIT: ${{ strategy.job-total }}
SPLIT_INDEX: ${{ strategy.job-index }}
e2e-atomic-screenshots:
name: 'Run e2e screenshots tests on Atomic'
needs: build
Expand Down
Loading

0 comments on commit ec7b821

Please sign in to comment.