Skip to content

Commit 8b978e3

Browse files
committed
ci fixes
1 parent 10341dd commit 8b978e3

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
channel: 'stable'
1717
- name: Test
1818
run: |
19+
dart pub global activate melos
20+
melos bootstrap
1921
cd workmanager
2022
flutter pub get
2123
flutter test
@@ -43,6 +45,8 @@ jobs:
4345
- uses: subosito/flutter-action@v2
4446
with:
4547
channel: 'stable'
48+
- name: Activate melos
49+
run: dart pub global activate melos && melos bootstrap
4650
- name: Build Android App
4751
run: cd example && flutter build apk --debug
4852
- name: Run native Android tests
@@ -52,31 +56,34 @@ jobs:
5256
strategy:
5357
matrix:
5458
device:
55-
- "iPhone 12 Pro"
59+
- "iPhone 15"
5660
fail-fast: false
5761
runs-on: macos-latest
5862
steps:
59-
- uses: futureware-tech/simulator-action@v2
63+
- uses: futureware-tech/simulator-action@v3
6064
with:
6165
model: '${{ matrix.device }}'
6266
- uses: actions/checkout@v4
6367
- uses: subosito/flutter-action@v2
6468
with:
6569
channel: 'stable'
6670
# Run flutter integrate tests
71+
- name: Activate melos
72+
run: dart pub global activate melos && melos bootstrap
6773
- name: Run Flutter integration tests
6874
run: cd example && flutter test integration_test/workmanager_integration_test.dart
6975

7076

7177
drive_android:
72-
runs-on: macos-latest
78+
runs-on: ubuntu-latest
7379
#creates a build matrix for your jobs
80+
timeout-minutes: 30
7481
strategy:
7582
#set of different configurations of the virtual environment.
7683
matrix:
77-
api-level: [29]
84+
api-level: [31]
7885
# api-level: [21, 29]
79-
target: [default]
86+
target: [google_apis]
8087
steps:
8188
- uses: actions/checkout@v4
8289
- uses: actions/setup-java@v4
@@ -86,9 +93,18 @@ jobs:
8693
- uses: subosito/flutter-action@v2
8794
with:
8895
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
89103
- name: Run Flutter Driver tests
90104
uses: reactivecircus/android-emulator-runner@v2
91105
with:
106+
arch: x86_64
107+
profile: Nexus 6
92108
api-level: ${{ matrix.api-level }}
93109
target: ${{ matrix.target }}
94110
script: cd example && flutter test integration_test/workmanager_integration_test.dart

0 commit comments

Comments
 (0)