-
Notifications
You must be signed in to change notification settings - Fork 1
159 lines (148 loc) · 4.72 KB
/
sherlo_testing.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
name: 'Sherlo Testing'
on:
workflow_dispatch:
inputs:
env:
description: 'Environment (dev, test, prod)'
required: true
default: 'dev'
type: string
preview_builds:
description: 'Builds: Preview'
required: false
default: false
type: boolean
development_builds:
description: 'Builds: Development'
required: false
default: false
type: boolean
device_testing:
description: 'Test: All Devices'
required: false
default: false
type: boolean
many_stories:
description: 'Test: Many Stories'
required: false
default: false
type: boolean
# stress_testing:
# description: 'Test: Stress Testing (20 builds)'
# required: false
# default: false
# type: boolean
# rn_local_builds:
# description: 'Test: local-builds (React Native)'
# required: false
# default: false
# type: boolean
expo_local_builds:
description: 'Test: local-builds (Expo)'
required: false
default: false
type: boolean
expo_cloud:
description: 'Test: expo-cloud-builds'
required: false
default: false
type: boolean
expo_update_with_builds:
description: 'Test: expo-update (with builds)'
required: false
default: false
type: boolean
expo_update:
description: 'Test: expo-update'
required: false
default: false
type: boolean
jobs:
update_preview_builds:
uses: ./.github/workflows/update_builds.yml
if: ${{ github.event.inputs.preview_builds == 'true'}}
name: Update Preview Builds
secrets: inherit
with:
profile: 'preview'
update_development_builds:
uses: ./.github/workflows/update_builds.yml
if: ${{ github.event.inputs.development_builds == 'true'}}
name: Update Development Builds
secrets: inherit
with:
profile: 'development'
device_testing:
uses: ./.github/workflows/expo-update.yml
needs: [update_development_builds]
if: ${{ github.event.inputs.device_testing == 'true' && always() && !failure() && !cancelled() }}
name: Device Testing
secrets: inherit
with:
env: ${{ github.event.inputs.env }}
config: 'all-devices'
project: 'device-testing'
with_builds: true
many_stories:
uses: ./.github/workflows/expo-update.yml
needs: [update_development_builds]
if: ${{ github.event.inputs.many_stories == 'true' && always() && !failure() && !cancelled() }}
name: Many Stories
secrets: inherit
with:
env: ${{ github.event.inputs.env }}
config: 'many-stories'
with_builds: true
project: 'many-stories'
stress_testing:
uses: ./.github/workflows/stress_testing.yml
needs: [update_preview_builds]
if: ${{ github.event.inputs.stress_testing == 'true' && always() && !failure() && !cancelled() }}
name: Stress Testing
secrets: inherit
with:
env: ${{ github.event.inputs.env }}
rn_local_builds:
uses: ./.github/workflows/rn_local-builds.yml
needs: [update_preview_builds]
if: ${{ github.event.inputs.rn_local_builds == 'true' && always() && !failure() && !cancelled() }}
name: local-builds (React Native)
secrets: inherit
with:
env: ${{ github.event.inputs.env }}
expo_local_builds:
uses: ./.github/workflows/expo_local-builds.yml
needs: [update_preview_builds]
if: ${{ github.event.inputs.expo_local_builds == 'true' && always() && !failure() && !cancelled() }}
name: local-builds (Expo)
secrets: inherit
with:
env: ${{ github.event.inputs.env }}
expo_cloud:
uses: ./.github/workflows/expo-cloud.yml
needs: [update_preview_builds]
if: ${{ github.event.inputs.expo_cloud == 'true' && always() && !failure() && !cancelled() }}
name: expo-cloud-builds
secrets: inherit
with:
env: ${{ github.event.inputs.env }}
expo_update_with_builds:
uses: ./.github/workflows/expo-update.yml
needs: [update_development_builds]
if: ${{ github.event.inputs.expo_update_with_builds == 'true' && always() && !failure() && !cancelled() }}
name: expo-update (with native builds)
secrets: inherit
with:
env: ${{ github.event.inputs.env }}
with_builds: true
project: 'expo-update'
expo_update:
uses: ./.github/workflows/expo-update.yml
needs: [update_development_builds]
if: ${{ github.event.inputs.expo_update == 'true' && always() && !failure() && !cancelled() }}
name: expo-update (without native builds)
secrets: inherit
with:
env: ${{ github.event.inputs.env }}
with_builds: false
project: 'expo-update'