@@ -16,72 +16,72 @@ jobs:
16
16
uses :
styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # [email protected]
17
17
with :
18
18
access_token : ${{ github.token }}
19
-
19
+
20
20
test-android :
21
21
runs-on : macos-latest
22
22
timeout-minutes : 30
23
23
defaults :
24
- run :
25
- working-directory : ./flutter/example
24
+ run :
25
+ working-directory : ./flutter/example
26
26
strategy :
27
- fail-fast : false
28
- matrix :
29
- sdk : ['stable', 'beta']
27
+ fail-fast : false
28
+ matrix :
29
+ sdk : ['stable', 'beta']
30
30
steps :
31
- - name : checkout
32
- uses : actions/checkout@v3
33
-
34
- - uses : actions/setup-java@v3
35
- with :
36
- distribution : ' adopt'
37
- java-version : ' 11'
38
-
39
- -
uses :
subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # [email protected]
40
- with :
41
- channel : ${{ matrix.sdk }}
42
-
43
- - name : flutter upgrade
44
- run : flutter upgrade
45
-
46
- - name : flutter pub get
47
- run : flutter pub get
48
-
49
- - name : Gradle cache
50
- uses : gradle/gradle-build-action@v2
51
-
52
- - name : AVD cache
53
- uses : actions/cache@v3
54
- id : avd-cache
55
- with :
56
- path : |
57
- ~/.android/avd/*
58
- ~/.android/adb*
31
+ - name : checkout
32
+ uses : actions/checkout@v3
33
+
34
+ - uses : actions/setup-java@v3
35
+ with :
36
+ distribution : ' adopt'
37
+ java-version : ' 11'
38
+
39
+ -
uses :
subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # [email protected]
40
+ with :
41
+ channel : ${{ matrix.sdk }}
42
+
43
+ - name : flutter upgrade
44
+ run : flutter upgrade
45
+
46
+ - name : flutter pub get
47
+ run : flutter pub get
48
+
49
+ - name : Gradle cache
50
+ uses : gradle/gradle-build-action@v2
51
+
52
+ - name : AVD cache
53
+ uses : actions/cache@v3
54
+ id : avd-cache
55
+ with :
56
+ path : |
57
+ ~/.android/avd/*
58
+ ~/.android/adb*
59
59
key : avd-21
60
60
61
- - name : create AVD and generate snapshot for caching
62
- if : steps.avd-cache.outputs.cache-hit != 'true'
63
- uses :
reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b # [email protected]
64
- with :
65
- working-directory : ./flutter/example
66
- api-level : 21
67
- force-avd-creation : false
68
- emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
69
- disable-animations : false
70
- arch : x86_64
71
- profile : Nexus 6
72
- script : echo " Generated AVD snapshot for caching."
73
-
74
- - name : launch android emulator & run android integration test
75
- uses :
reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b # [email protected]
76
- with :
77
- working-directory : ./flutter/example
78
- api-level : 21
79
- force-avd-creation : false
80
- emulator-options : -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
81
- disable-animations : true
82
- arch : x86_64
83
- profile : Nexus 6
84
- script : flutter test integration_test/integration_test.dart --verbose
61
+ - name : create AVD and generate snapshot for caching
62
+ if : steps.avd-cache.outputs.cache-hit != 'true'
63
+ uses :
reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b # [email protected]
64
+ with :
65
+ working-directory : ./flutter/example
66
+ api-level : 21
67
+ force-avd-creation : false
68
+ emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
69
+ disable-animations : false
70
+ arch : x86_64
71
+ profile : Nexus 6
72
+ script : echo ' Generated AVD snapshot for caching.'
73
+
74
+ - name : launch android emulator & run android integration test
75
+ uses :
reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b # [email protected]
76
+ with :
77
+ working-directory : ./flutter/example
78
+ api-level : 21
79
+ force-avd-creation : false
80
+ emulator-options : -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
81
+ disable-animations : true
82
+ arch : x86_64
83
+ profile : Nexus 6
84
+ script : flutter test integration_test/integration_test.dart --verbose
85
85
86
86
test-ios :
87
87
runs-on : macos-13
0 commit comments