-
Notifications
You must be signed in to change notification settings - Fork 20
76 lines (65 loc) · 2.03 KB
/
cypress.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Cypress component testing
on:
merge_group:
pull_request:
branches:
- master
- dev
concurrency:
# New commit on branch cancels running workflows of the same branch
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
change-detection:
uses: ./.github/workflows/change-detection.yml
secrets: inherit
change-detection-temple:
uses: ./.github/workflows/change-detection.yml
with:
exclude-dependents: true
secrets: inherit
cypress:
needs: change-detection
if: ${{ needs.change-detection.outputs.HAS_SCOPE == 'true' }}
strategy:
fail-fast: false
matrix:
# [Note]
# Важно что бы массив был со значениями, где `""` экранируются, например -> ["\"b2c\""]
# Можно для этого использовать JSON.stringify()
scope: ${{fromJson(needs.change-detection.outputs.SCOPE)}}
exclude:
- scope: temple
uses: ./.github/workflows/cypress-common.yml
with:
scope: ${{ matrix.scope }}
secrets: inherit
cypress-react-17:
needs: change-detection
if: ${{ needs.change-detection.outputs.HAS_SCOPE == 'true' }}
strategy:
fail-fast: false
matrix:
scope: ${{fromJson(needs.change-detection.outputs.SCOPE)}}
exclude:
- scope: temple
uses: ./.github/workflows/cypress-common.yml
with:
scope: ${{ matrix.scope }}
with-react-17: true
secrets: inherit
cypress-temple:
needs: change-detection-temple
if: ${{ needs.change-detection-temple.outputs.HAS_PLASMA_TEMPLE == 'true' }}
uses: ./.github/workflows/cypress-common.yml
with:
scope: 'temple'
secrets: inherit
cypress-temple-react-17:
needs: change-detection-temple
if: ${{ needs.change-detection-temple.outputs.HAS_PLASMA_TEMPLE == 'true' }}
uses: ./.github/workflows/cypress-common.yml
with:
scope: 'temple'
with-react-17: true
secrets: inherit