-
Notifications
You must be signed in to change notification settings - Fork 1
224 lines (193 loc) · 8.64 KB
/
rapid_cli_e2e.yaml
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
name: rapid_cli_e2e
on:
workflow_dispatch:
push:
branches:
- main
env:
FLUTTER_VERSION: 3.13.0
FIXTURES_PATH: packages/rapid_cli/test/e2e/fixtures
jobs:
generate-fixtures:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/rapid_cli
steps:
- uses: actions/checkout@v4
- name: Setup Flutter SDK
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: stable
cache: true
cache-key: "flutter-:os:-:channel:-:version:-:arch:"
- name: Setup Melos
run: flutter pub global activate melos
- name: Setup Mason CLI
run: dart pub global activate mason_cli
- name: Setup Rapid CLI
run: melos dev:activate
- name: Cache Fixtures
uses: actions/cache@v3
with:
path: ${{ env.FIXTURES_PATH }}
key: fixtures-${{ github.run_id }}
- name: Generate Fixtures
run: bash ../../tool/fixtures.sh
e2e:
runs-on: ubuntu-latest
needs: generate-fixtures
defaults:
run:
working-directory: packages/rapid_cli
strategy:
fail-fast: false
matrix:
test:
# E2E tests for activate command
- test/e2e/activate_android_test.dart
- test/e2e/activate_ios_test.dart
- test/e2e/activate_linux_test.dart
- test/e2e/activate_macos_test.dart
- test/e2e/activate_web_test.dart
- test/e2e/activate_windows_test.dart
# E2E tests for create command
- test/e2e/create_test.dart
# E2E tests for deactivate command
- test/e2e/deactivate_android_test.dart
- test/e2e/deactivate_ios_test.dart
- test/e2e/deactivate_linux_test.dart
- test/e2e/deactivate_macos_test.dart
- test/e2e/deactivate_web_test.dart
- test/e2e/deactivate_windows_test.dart
# E2E tests for domain command
- test/e2e/domain_sub_domain_add_entity_test.dart
- test/e2e/domain_sub_domain_add_service_interface_test.dart
- test/e2e/domain_sub_domain_add_value_object_test.dart
- test/e2e/domain_sub_domain_remove_entity_test.dart
- test/e2e/domain_sub_domain_remove_service_interface_test.dart
- test/e2e/domain_sub_domain_remove_value_object_test.dart
# E2E tests for infrastructure command
- test/e2e/infrastructure_sub_infrastructure_add_data_transfer_object_test.dart
- test/e2e/infrastructure_sub_infrastructure_add_service_implementation_test.dart
- test/e2e/infrastructure_sub_infrastructure_remove_data_transfer_object_test.dart
- test/e2e/infrastructure_sub_infrastructure_remove_service_implementation_test.dart
# E2E tests for ui command
- test/e2e/ui_add_widget_test.dart
- test/e2e/ui_android_add_widget_test.dart
- test/e2e/ui_android_remove_widget_test.dart
- test/e2e/ui_ios_add_widget_test.dart
- test/e2e/ui_ios_remove_widget_test.dart
- test/e2e/ui_linux_add_widget_test.dart
- test/e2e/ui_linux_remove_widget_test.dart
- test/e2e/ui_macos_add_widget_test.dart
- test/e2e/ui_macos_remove_widget_test.dart
- test/e2e/ui_mobile_add_widget_test.dart
- test/e2e/ui_mobile_remove_widget_test.dart
- test/e2e/ui_remove_widget_test.dart
- test/e2e/ui_web_add_widget_test.dart
- test/e2e/ui_web_remove_widget_test.dart
- test/e2e/ui_windows_add_widget_test.dart
- test/e2e/ui_windows_remove_widget_test.dart
# E2E tests for <platform> command
- test/e2e/android_add_feature_flow_test.dart
- test/e2e/android_add_feature_page_test.dart
- test/e2e/android_add_feature_tab_flow_test.dart
- test/e2e/android_add_feature_widget_test.dart
- test/e2e/android_add_language_test.dart
- test/e2e/android_add_navigator_test.dart
- test/e2e/android_feature_add_bloc_test.dart
- test/e2e/android_feature_add_cubit_test.dart
- test/e2e/android_remove_feature_test.dart
- test/e2e/android_remove_language_test.dart
- test/e2e/android_remove_navigator_test.dart
- test/e2e/ios_add_feature_flow_test.dart
- test/e2e/ios_add_feature_page_test.dart
- test/e2e/ios_add_feature_tab_flow_test.dart
- test/e2e/ios_add_feature_widget_test.dart
- test/e2e/ios_add_language_test.dart
- test/e2e/ios_add_navigator_test.dart
- test/e2e/ios_feature_add_bloc_test.dart
- test/e2e/ios_feature_add_cubit_test.dart
- test/e2e/ios_remove_feature_test.dart
- test/e2e/ios_remove_language_test.dart
- test/e2e/ios_remove_navigator_test.dart
- test/e2e/linux_add_feature_flow_test.dart
- test/e2e/linux_add_feature_page_test.dart
- test/e2e/linux_add_feature_tab_flow_test.dart
- test/e2e/linux_add_feature_widget_test.dart
- test/e2e/linux_add_language_test.dart
- test/e2e/linux_add_navigator_test.dart
- test/e2e/linux_feature_add_bloc_test.dart
- test/e2e/linux_feature_add_cubit_test.dart
- test/e2e/linux_remove_feature_test.dart
- test/e2e/linux_remove_language_test.dart
- test/e2e/linux_remove_navigator_test.dart
- test/e2e/macos_add_feature_flow_test.dart
- test/e2e/macos_add_feature_page_test.dart
- test/e2e/macos_add_feature_tab_flow_test.dart
- test/e2e/macos_add_feature_widget_test.dart
- test/e2e/macos_add_language_test.dart
- test/e2e/macos_add_navigator_test.dart
- test/e2e/macos_feature_add_bloc_test.dart
- test/e2e/macos_feature_add_cubit_test.dart
- test/e2e/macos_remove_feature_test.dart
- test/e2e/macos_remove_language_test.dart
- test/e2e/macos_remove_navigator_test.dart
- test/e2e/mobile_add_feature_flow_test.dart
- test/e2e/mobile_add_feature_page_test.dart
- test/e2e/mobile_add_feature_tab_flow_test.dart
- test/e2e/mobile_add_feature_widget_test.dart
- test/e2e/mobile_add_language_test.dart
- test/e2e/mobile_add_navigator_test.dart
- test/e2e/mobile_feature_add_bloc_test.dart
- test/e2e/mobile_feature_add_cubit_test.dart
- test/e2e/mobile_remove_feature_test.dart
- test/e2e/mobile_remove_language_test.dart
- test/e2e/mobile_remove_navigator_test.dart
- test/e2e/web_add_feature_flow_test.dart
- test/e2e/web_add_feature_page_test.dart
- test/e2e/web_add_feature_tab_flow_test.dart
- test/e2e/web_add_feature_widget_test.dart
- test/e2e/web_add_language_test.dart
- test/e2e/web_add_navigator_test.dart
- test/e2e/web_feature_add_bloc_test.dart
- test/e2e/web_feature_add_cubit_test.dart
- test/e2e/web_remove_feature_test.dart
- test/e2e/web_remove_language_test.dart
- test/e2e/web_remove_navigator_test.dart
- test/e2e/windows_add_feature_flow_test.dart
- test/e2e/windows_add_feature_page_test.dart
- test/e2e/windows_add_feature_tab_flow_test.dart
- test/e2e/windows_add_feature_widget_test.dart
- test/e2e/windows_add_language_test.dart
- test/e2e/windows_add_navigator_test.dart
- test/e2e/windows_feature_add_bloc_test.dart
- test/e2e/windows_feature_add_cubit_test.dart
- test/e2e/windows_remove_feature_test.dart
- test/e2e/windows_remove_language_test.dart
- test/e2e/windows_remove_navigator_test.dart
steps:
- uses: actions/checkout@v4
- name: Get Cached Fixtures
uses: actions/cache/restore@v3
with:
path: ${{ env.FIXTURES_PATH }}
key: fixtures-${{ github.run_id }}
- name: Setup Flutter SDK
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: stable
cache: true
cache-key: "flutter-:os:-:channel:-:version:-:arch:"
- name: Install Flutter dependencies
run: flutter pub get
- name: Setup Melos
run: flutter pub global activate melos
# TODO is all of this required
- name: Setup Coverage Utils
run: flutter pub global activate coverage && flutter pub global activate test_cov_console && flutter pub global activate remove_from_coverage
- name: Run E2E Tests
run: dart test ${{ matrix.test }} -j 1 --run-skipped -t e2e