16
16
channel : ' stable'
17
17
- name : Test
18
18
run : |
19
+ dart pub global activate melos
20
+ melos bootstrap
19
21
cd workmanager
20
22
flutter pub get
21
23
flutter test
43
45
- uses : subosito/flutter-action@v2
44
46
with :
45
47
channel : ' stable'
48
+ - name : Activate melos
49
+ run : dart pub global activate melos && melos bootstrap
46
50
- name : Build Android App
47
51
run : cd example && flutter build apk --debug
48
52
- name : Run native Android tests
@@ -52,31 +56,34 @@ jobs:
52
56
strategy :
53
57
matrix :
54
58
device :
55
- - " iPhone 12 Pro "
59
+ - " iPhone 15 "
56
60
fail-fast : false
57
61
runs-on : macos-latest
58
62
steps :
59
- - uses : futureware-tech/simulator-action@v2
63
+ - uses : futureware-tech/simulator-action@v3
60
64
with :
61
65
model : ' ${{ matrix.device }}'
62
66
- uses : actions/checkout@v4
63
67
- uses : subosito/flutter-action@v2
64
68
with :
65
69
channel : ' stable'
66
70
# Run flutter integrate tests
71
+ - name : Activate melos
72
+ run : dart pub global activate melos && melos bootstrap
67
73
- name : Run Flutter integration tests
68
74
run : cd example && flutter test integration_test/workmanager_integration_test.dart
69
75
70
76
71
77
drive_android :
72
- runs-on : macos -latest
78
+ runs-on : ubuntu -latest
73
79
# creates a build matrix for your jobs
80
+ timeout-minutes : 30
74
81
strategy :
75
82
# set of different configurations of the virtual environment.
76
83
matrix :
77
- api-level : [29 ]
84
+ api-level : [31 ]
78
85
# api-level: [21, 29]
79
- target : [default ]
86
+ target : [google_apis ]
80
87
steps :
81
88
- uses : actions/checkout@v4
82
89
- uses : actions/setup-java@v4
86
93
- uses : subosito/flutter-action@v2
87
94
with :
88
95
channel : ' stable'
96
+ - name : Activate melos
97
+ run : dart pub global activate melos && melos bootstrap
98
+ - name : Enable KVM
99
+ run : |
100
+ echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
101
+ sudo udevadm control --reload-rules
102
+ sudo udevadm trigger --name-match=kvm
89
103
- name : Run Flutter Driver tests
90
104
uses : reactivecircus/android-emulator-runner@v2
91
105
with :
106
+ arch : x86_64
107
+ profile : Nexus 6
92
108
api-level : ${{ matrix.api-level }}
93
109
target : ${{ matrix.target }}
94
110
script : cd example && flutter test integration_test/workmanager_integration_test.dart
0 commit comments