@@ -11,12 +11,13 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v4
14
- - uses : subosito/flutter-action@v2
15
- with :
16
- channel : ' stable'
14
+ - name : " Install Flutter"
15
+ run : ./.github/workflows/scripts/install-flutter.sh stable
16
+ - name : " Install Tools"
17
+ run : |
18
+ ./.github/workflows/scripts/install-tools.sh
17
19
- name : Test
18
20
run : |
19
- dart pub global activate melos
20
21
melos bootstrap
21
22
cd workmanager
22
23
flutter pub get
@@ -26,27 +27,37 @@ jobs:
26
27
runs-on : macos-latest
27
28
steps :
28
29
- uses : actions/checkout@v4
29
- - uses : subosito/flutter-action@v2
30
- with :
31
- channel : ' stable'
30
+ - name : " Install Flutter"
31
+ run : ./.github/workflows/scripts/install-flutter.sh stable
32
+ - name : " Install Tools"
33
+ run : |
34
+ ./.github/workflows/scripts/install-tools.sh
32
35
- name : Build iOS App
33
36
run : cd example && flutter build ios --debug --no-codesign
34
37
- name : Run native iOS tests
35
38
run : cd example/ios && xcodebuild -workspace Runner.xcworkspace -scheme Runner -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12,OS=16.2' test
36
39
37
40
native_android_tests :
38
- runs-on : macos -latest
41
+ runs-on : ubuntu -latest
39
42
steps :
40
43
- uses : actions/checkout@v4
41
44
- uses : actions/setup-java@v4
42
45
with :
43
46
distribution : ' temurin'
44
47
java-version : 21
45
- - uses : subosito/flutter-action@v2
48
+ - name : " Install Flutter"
49
+ run : ./.github/workflows/scripts/install-flutter.sh stable
50
+ - name : " Install Tools"
51
+ run : |
52
+ ./.github/workflows/scripts/install-tools.sh
53
+ - name : Run Flutter Driver tests
54
+ uses : reactivecircus/android-emulator-runner@v2
46
55
with :
47
- channel : ' stable'
48
- - name : Activate melos
49
- run : dart pub global activate melos && melos bootstrap
56
+ arch : x86_64
57
+ profile : Nexus 6
58
+ api-level : 34
59
+ target : google_apis
60
+ script : cd example && flutter test integration_test/workmanager_integration_test.dart
50
61
- name : Build Android App
51
62
run : cd example && flutter build apk --debug
52
63
- name : Run native Android tests
@@ -64,12 +75,12 @@ jobs:
64
75
with :
65
76
model : ' ${{ matrix.device }}'
66
77
- uses : actions/checkout@v4
67
- - uses : subosito/flutter-action@v2
68
- with :
69
- channel : ' stable'
78
+ - name : " Install Flutter"
79
+ run : ./.github/workflows/scripts/install-flutter.sh stable
80
+ - name : " Install Tools"
81
+ run : |
82
+ ./.github/workflows/scripts/install-tools.sh
70
83
# Run flutter integrate tests
71
- - name : Activate melos
72
- run : dart pub global activate melos && melos bootstrap
73
84
- name : Run Flutter integration tests
74
85
run : cd example && flutter test integration_test/workmanager_integration_test.dart
75
86
@@ -90,11 +101,11 @@ jobs:
90
101
with :
91
102
distribution : ' temurin'
92
103
java-version : 21
93
- - uses : subosito/flutter-action@v2
94
- with :
95
- channel : ' stable '
96
- - name : Activate melos
97
- run : dart pub global activate melos && melos bootstrap
104
+ - name : " Install Flutter "
105
+ run : ./.github/workflows/scripts/install-flutter.sh stable
106
+ - name : " Install Tools "
107
+ run : |
108
+ ./.github/workflows/scripts/install-tools.sh
98
109
- name : Enable KVM
99
110
run : |
100
111
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
@@ -103,7 +114,7 @@ jobs:
103
114
- name : Run Flutter Driver tests
104
115
uses : reactivecircus/android-emulator-runner@v2
105
116
with :
106
- arch : x86_64
117
+ # arch: x86_64
107
118
profile : Nexus 6
108
119
api-level : ${{ matrix.api-level }}
109
120
target : ${{ matrix.target }}
0 commit comments