Skip to content

Commit ce3cf21

Browse files
authored
test: Split test cases by architecture (#305)
1 parent f2c4f66 commit ce3cf21

File tree

1 file changed

+102
-31
lines changed

1 file changed

+102
-31
lines changed

.github/workflows/workflow.yaml

Lines changed: 102 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ jobs:
116116
run: flutter --version | grep '3.3.10'
117117
shell: bash
118118

119-
test_print_output:
120-
runs-on: macos-13
119+
test_print_output_x64:
120+
runs-on: ubuntu-latest
121121

122122
# These calls to setup.sh sepcify the -t flag, which enables test mode.
123-
# Test mode uses hardcoded Flutter release manifests from test/ directory.
123+
# Test mode uses hardcoded Flutter release manifests from test/ directory.
124124

125125
steps:
126126
- name: Clone repository
@@ -131,7 +131,7 @@ jobs:
131131
shell: bash
132132
- run: ./setup.sh -t -p | grep '3.7.7'
133133
shell: bash
134-
- run: ./setup.sh -t -p -a x64 | grep 'x64'
134+
- run: ./setup.sh -t -p | grep 'x64'
135135
shell: bash
136136
- run: ./setup.sh -t -p stable | grep 'stable'
137137
shell: bash
@@ -143,65 +143,136 @@ jobs:
143143
shell: bash
144144
- run: ./setup.sh -t -p -n 3.3.1 stable | grep '3.3.1'
145145
shell: bash
146-
- run: ./setup.sh -t -p -n 2 -a x64 stable | grep '2.10.5'
146+
- run: ./setup.sh -t -p -n 2 stable | grep '2.10.5'
147147
shell: bash
148-
- run: ./setup.sh -t -p -n 2 -a x64 beta | grep '2.13.0-0.4.pre'
148+
- run: ./setup.sh -t -p -n 2 beta | grep '2.13.0-0.4.pre'
149149
shell: bash
150-
- run: ./setup.sh -t -p -n 2 -a x64 any | grep 'beta'
150+
- run: ./setup.sh -t -p -n 2 any | grep 'beta'
151151
shell: bash
152-
- run: ./setup.sh -t -p -n 2 -a x64 any | grep '2.13.0-0.4.pre'
152+
- run: ./setup.sh -t -p -n 2 any | grep '2.13.0-0.4.pre'
153153
shell: bash
154154
- run: ./setup.sh -t -p -n 3 any | grep 'beta'
155155
shell: bash
156156
- run: ./setup.sh -t -p -n 3 any | grep '3.9.0-0.1.pre'
157157
shell: bash
158-
- run: ./setup.sh -t -p -n 3 -a arm64 any | grep 'arm64'
158+
- run: ./setup.sh -t -p -n 3 any | grep 'x64'
159159
shell: bash
160-
- run: ./setup.sh -t -p -n any -a arm64 stable | grep 'stable'
160+
- run: ./setup.sh -t -p -n any stable | grep 'stable'
161161
shell: bash
162-
- run: ./setup.sh -t -p -n any -a arm64 stable | grep '3.7.7'
162+
- run: ./setup.sh -t -p -n any stable | grep '3.7.7'
163163
shell: bash
164-
- run: ./setup.sh -t -p -n any -a arm64 stable | grep 'arm64'
164+
- run: ./setup.sh -t -p -n any stable | grep 'x64'
165+
shell: bash
166+
- run: ./setup.sh -t -p -n 1 stable | grep '1.22.6'
167+
shell: bash
168+
- run: ./setup.sh -t -p -n 0 any | grep 'beta'
169+
shell: bash
170+
- run: ./setup.sh -t -p -n 0 any | grep '0.11.13'
171+
shell: bash
172+
- run: ./setup.sh -t -p | grep 'flutter-linux-stable-3.7.7-x64-2ad6cd72c040113b47ee9055e722606a490ef0da'
173+
shell: bash
174+
- run: ./setup.sh -t -p stable | grep 'flutter-linux-stable-3.7.7-x64-2ad6cd72c040113b47ee9055e722606a490ef0da'
175+
shell: bash
176+
- run: ./setup.sh -t -p beta | grep 'flutter-linux-beta-3.9.0-0.1.pre-x64-f732038a8cf4562ce38a1d7debb30209ae3da896'
177+
shell: bash
178+
- run: ./setup.sh -t -p dev | grep 'flutter-linux-dev-2.13.0-0.1.pre-x64-13a2fb10b838971ce211230f8ffdd094c14af02c'
179+
shell: bash
180+
- run: ./setup.sh -t -p master | grep 'flutter-linux-master-any-x64-master'
181+
shell: bash
182+
- run: ./setup.sh -t -p -n 5b12b74 master | grep 'flutter-linux-master-5b12b74-x64-master'
183+
shell: bash
184+
- run: ./setup.sh -t -p -n 3.12.0-12.0.pre master | grep 'flutter-linux-master-3.12.0-12.0.pre-x64-master'
165185
shell: bash
166-
- run: ./setup.sh -t -p -n 1 -a x64 stable | grep '1.22.6'
186+
- run: ./setup.sh -t -p -n stable master | grep 'flutter-linux-master-stable-x64-master'
167187
shell: bash
168-
- run: ./setup.sh -t -p -n 0 -a x64 any | grep 'beta'
188+
- run: ./setup.sh -t -p -n 2 any | grep 'flutter-linux-beta-2.13.0-0.4.pre-x64-25caf1461b8f643092a9f6f5b224453b5c057d10'
169189
shell: bash
170-
- run: ./setup.sh -t -p -n 0 -a x64 any | grep '0.11.13'
190+
- run: ./setup.sh -t -p -n 1 any | grep 'flutter-linux-beta-1.26.0-17.8.pre-x64-044f2cf5607a26f8818dab0f766400e85c52bdff'
171191
shell: bash
172-
- run: ./setup.sh -t -p -a x64 | grep 'flutter-macos-stable-3.7.7-x64-2ad6cd72c040113b47ee9055e722606a490ef0da'
192+
- run: ./setup.sh -t -p -n 0 any | grep 'flutter-linux-beta-0.11.13-x64-58c8489fcdb4e4ef6c010117584c9b23d15221aa'
173193
shell: bash
174-
- run: ./setup.sh -t -p -a x64 stable | grep 'flutter-macos-stable-3.7.7-x64-2ad6cd72c040113b47ee9055e722606a490ef0da'
194+
- run: ./setup.sh -t -p | grep '/opt/hostedtoolcache/flutter/stable-3.7.7-x64'
175195
shell: bash
176-
- run: ./setup.sh -t -p -a x64 beta | grep 'flutter-macos-beta-3.9.0-0.1.pre-x64-f732038a8cf4562ce38a1d7debb30209ae3da896'
196+
- run: ./setup.sh -t -p stable | grep '/opt/hostedtoolcache/flutter/stable-3.7.7-x64'
177197
shell: bash
178-
- run: ./setup.sh -t -p -a x64 dev | grep 'flutter-macos-dev-2.11.0-0.1.pre-x64-b101bfe32f634566e7cb2791a9efe19cf8828b15'
198+
- run: ./setup.sh -t -p beta | grep '/opt/hostedtoolcache/flutter/beta-3.9.0-0.1.pre-x64'
199+
shell: bash
200+
- run: ./setup.sh -t -p dev | grep '/opt/hostedtoolcache/flutter/dev-2.13.0-0.1.pre-x64'
201+
shell: bash
202+
- run: ./setup.sh -t -p master | grep '/opt/hostedtoolcache/flutter/master-any-x64'
203+
shell: bash
204+
- run: ./setup.sh -t -p -k 'custom-:channel:-:version:-:hash:' | grep 'custom-stable-3.7.7-2ad6cd72c040113b47ee9055e722606a490ef0da'
205+
shell: bash
206+
- run: ./setup.sh -t -p -k 'custom-:channel:-:version:-:sha256:' | grep 'custom-stable-3.7.7-cdd49597e88c35e5de5184e9acff433dfbb3c075b74ef7b27790af7f57ce2420'
207+
shell: bash
208+
- run: ./setup.sh -t -p -c '/tmp/flutter/:channel:-:version:-:hash:' | grep '/tmp/flutter/stable-3.7.7-2ad6cd72c040113b47ee9055e722606a490ef0da'
209+
shell: bash
210+
211+
212+
test_print_output_arm64:
213+
runs-on: macos-latest
214+
215+
# These calls to setup.sh sepcify the -t flag, which enables test mode.
216+
# Test mode uses hardcoded Flutter release manifests from test/ directory.
217+
218+
steps:
219+
- name: Clone repository
220+
uses: actions/checkout@v4
221+
- run: ./setup.sh -t -p -f test/pubspec.yaml | grep '3.3.10'
222+
shell: bash
223+
- run: ./setup.sh -t -p | grep 'stable'
224+
shell: bash
225+
- run: ./setup.sh -t -p | grep '3.7.7'
226+
shell: bash
227+
- run: ./setup.sh -t -p | grep 'arm64'
228+
shell: bash
229+
- run: ./setup.sh -t -p stable | grep 'stable'
230+
shell: bash
231+
- run: ./setup.sh -t -p beta | grep 'beta'
232+
shell: bash
233+
- run: ./setup.sh -t -p beta | grep '3.9.0-0.1.pre'
234+
shell: bash
235+
- run: ./setup.sh -t -p -n 3.3.10 stable | grep '3.3.10'
236+
shell: bash
237+
- run: ./setup.sh -t -p -n 3.3.1 stable | grep '3.3.1'
238+
shell: bash
239+
- run: ./setup.sh -t -p -n 3 any | grep 'beta'
240+
shell: bash
241+
- run: ./setup.sh -t -p -n 3 any | grep '3.9.0-0.1.pre'
242+
shell: bash
243+
- run: ./setup.sh -t -p -n 3 -a arm64 any | grep 'arm64'
244+
shell: bash
245+
- run: ./setup.sh -t -p -n any -a arm64 stable | grep 'stable'
246+
shell: bash
247+
- run: ./setup.sh -t -p -n any -a arm64 stable | grep '3.7.7'
248+
shell: bash
249+
- run: ./setup.sh -t -p -n any -a arm64 stable | grep 'arm64'
179250
shell: bash
180-
- run: ./setup.sh -t -p -a x64 master | grep 'flutter-macos-master-any-x64-master'
251+
- run: ./setup.sh -t -p | grep 'flutter-macos-stable-3.7.7-arm64-2ad6cd72c040113b47ee9055e722606a490ef0da'
181252
shell: bash
182-
- run: ./setup.sh -t -p -n 5b12b74 -a x64 master | grep 'flutter-macos-master-5b12b74-x64-master'
253+
- run: ./setup.sh -t -p stable | grep 'flutter-macos-stable-3.7.7-arm64-2ad6cd72c040113b47ee9055e722606a490ef0da'
183254
shell: bash
184-
- run: ./setup.sh -t -p -n 3.12.0-12.0.pre -a x64 master | grep 'flutter-macos-master-3.12.0-12.0.pre-x64-master'
255+
- run: ./setup.sh -t -p beta | grep 'flutter-macos-beta-3.9.0-0.1.pre-arm64-8b9b90e75107181aadc303d8d7422205863a35dd'
185256
shell: bash
186-
- run: ./setup.sh -t -p -n 2 -a x64 any | grep 'flutter-macos-beta-2.13.0-0.4.pre-x64-25caf1461b8f643092a9f6f5b224453b5c057d10'
257+
- run: ./setup.sh -t -p master | grep 'flutter-macos-master-any-arm64-master'
187258
shell: bash
188-
- run: ./setup.sh -t -p -n 1 -a x64 any | grep 'flutter-macos-beta-1.26.0-17.8.pre-x64-044f2cf5607a26f8818dab0f766400e85c52bdff'
259+
- run: ./setup.sh -t -p -n 5b12b74 master | grep 'flutter-macos-master-5b12b74-arm64-master'
189260
shell: bash
190-
- run: ./setup.sh -t -p -n 0 -a x64 any | grep 'flutter-macos-beta-0.11.13-x64-58c8489fcdb4e4ef6c010117584c9b23d15221aa'
261+
- run: ./setup.sh -t -p -n 3.12.0-12.0.pre master | grep 'flutter-macos-master-3.12.0-12.0.pre-arm64-master'
191262
shell: bash
192-
- run: ./setup.sh -t -p -a x64 | grep '/Users/runner/hostedtoolcache/flutter/stable-3.7.7-x64'
263+
- run: ./setup.sh -t -p -n stable master | grep 'flutter-macos-master-stable-arm64-master'
193264
shell: bash
194-
- run: ./setup.sh -t -p -a x64 stable | grep '/Users/runner/hostedtoolcache/flutter/stable-3.7.7-x64'
265+
- run: ./setup.sh -t -p | grep '/Users/runner/hostedtoolcache/flutter/stable-3.7.7-arm64'
195266
shell: bash
196-
- run: ./setup.sh -t -p -a x64 beta | grep '/Users/runner/hostedtoolcache/flutter/beta-3.9.0-0.1.pre-x64'
267+
- run: ./setup.sh -t -p stable | grep '/Users/runner/hostedtoolcache/flutter/stable-3.7.7-arm64'
197268
shell: bash
198-
- run: ./setup.sh -t -p -a x64 dev | grep '/Users/runner/hostedtoolcache/flutter/dev-2.11.0-0.1.pre-x64'
269+
- run: ./setup.sh -t -p beta | grep '/Users/runner/hostedtoolcache/flutter/beta-3.9.0-0.1.pre-arm64'
199270
shell: bash
200-
- run: ./setup.sh -t -p -a x64 master | grep '/Users/runner/hostedtoolcache/flutter/master-any-x64'
271+
- run: ./setup.sh -t -p master | grep '/Users/runner/hostedtoolcache/flutter/master-any-arm64'
201272
shell: bash
202273
- run: ./setup.sh -t -p -k 'custom-:channel:-:version:-:hash:' | grep 'custom-stable-3.7.7-2ad6cd72c040113b47ee9055e722606a490ef0da'
203274
shell: bash
204-
- run: ./setup.sh -t -p -k 'custom-:channel:-:version:-:sha256:' -a x64 | grep 'custom-stable-3.7.7-78957b52f023a0d811add27eddc59b1a59d27d2ada5df123f39d0315708fb2d5'
275+
- run: ./setup.sh -t -p -k 'custom-:channel:-:version:-:sha256:' | grep 'custom-stable-3.7.7-0511b9f164a62f467b063e6c83d9c683bb3fb056ee556b2f45e987a2c2f4a260'
205276
shell: bash
206277
- run: ./setup.sh -t -p -c '/tmp/flutter/:channel:-:version:-:hash:' | grep '/tmp/flutter/stable-3.7.7-2ad6cd72c040113b47ee9055e722606a490ef0da'
207278
shell: bash

0 commit comments

Comments
 (0)