Skip to content

Commit 005c2b1

Browse files
committed
fix: run test issue
1 parent fe50712 commit 005c2b1

File tree

6 files changed

+56
-47
lines changed

6 files changed

+56
-47
lines changed

.github/workflows/build.yml

Lines changed: 50 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
# Create a zip file of the DartDoc output
6565
zip -r agora_rtc_engine_docs.zip doc
6666
- name: Upload DartDoc Artifact ⬆️
67-
uses: actions/upload-artifact@v3
67+
uses: actions/upload-artifact@v4
6868
with:
6969
name: agora_rtc_engine_docs.zip
7070
path: agora_rtc_engine_docs.zip
@@ -85,20 +85,25 @@ jobs:
8585
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
8686
strategy:
8787
matrix:
88-
version: ["3.7.0", "3.x"]
88+
version: ["3.7.0", "3.24.5"]
8989
runs-on: ubuntu-latest
9090
timeout-minutes: 120
9191
env:
9292
TEST_APP_ID: ${{ secrets.MY_APP_ID }}
9393
steps:
94-
- uses: actions/checkout@v1
95-
- uses: actions/setup-java@v1
94+
- uses: actions/checkout@v3
95+
- uses: actions/setup-java@v4
9696
with:
97-
java-version: "11"
97+
distribution: 'zulu'
98+
java-version: '17'
9899
- uses: subosito/flutter-action@v2
99100
with:
100101
flutter-version: ${{ matrix.version }}
101-
- run: flutter config --enable-macos-desktop
102+
- name: Enable KVM
103+
run: |
104+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
105+
sudo udevadm control --reload-rules
106+
sudo udevadm trigger --name-match=kvm
102107
- name: run flutter android integration tests
103108
uses: reactivecircus/android-emulator-runner@v2
104109
with:
@@ -115,8 +120,8 @@ jobs:
115120
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
116121
strategy:
117122
matrix:
118-
version: ["3.7.0", "3.16"]
119-
runs-on: macos-12
123+
version: ["3.7.0", "3.24.5"]
124+
runs-on: macos-latest
120125
timeout-minutes: 120
121126
env:
122127
TEST_APP_ID: ${{ secrets.MY_APP_ID }}
@@ -126,18 +131,18 @@ jobs:
126131
with:
127132
flutter-version: ${{ matrix.version }}
128133
cache: true
129-
- uses: futureware-tech/simulator-action@v1
134+
- uses: futureware-tech/simulator-action@v3
130135
with:
131-
model: 'iPhone 13 Pro Max'
136+
model: 'iPhone 15'
132137
- run: bash ci/run_flutter_integration_test_ios.sh
133138

134139
integration_test_macos:
135140
name: Run Flutter macOS Integration Tests
136141
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
137142
strategy:
138143
matrix:
139-
version: ["3.7.0", "3.x"]
140-
runs-on: macos-12
144+
version: ["3.7.0", "3.24.5"]
145+
runs-on: macos-latest
141146
timeout-minutes: 120
142147
env:
143148
TEST_APP_ID: ${{ secrets.MY_APP_ID }}
@@ -155,7 +160,7 @@ jobs:
155160
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
156161
strategy:
157162
matrix:
158-
version: ["3.7.0", "3.x"]
163+
version: ["3.7.0", "3.24.5"]
159164
runs-on: windows-2019
160165
timeout-minutes: 120
161166
env:
@@ -177,7 +182,7 @@ jobs:
177182
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
178183
strategy:
179184
matrix:
180-
version: ['3.x']
185+
version: ['3.24.5']
181186
runs-on: ubuntu-latest
182187
timeout-minutes: 60
183188
env:
@@ -200,13 +205,14 @@ jobs:
200205
needs: flutter_codestyle_check
201206
strategy:
202207
matrix:
203-
version: ["3.7.0", "3.x"]
208+
version: ["3.7.12", "3.24.5"]
204209
runs-on: ubuntu-latest
205210
steps:
206211
- uses: actions/checkout@v3
207-
- uses: actions/setup-java@v1
212+
- uses: actions/setup-java@v4
208213
with:
209-
java-version: "11"
214+
distribution: 'zulu'
215+
java-version: '17'
210216
- uses: subosito/flutter-action@v2
211217
with:
212218
flutter-version: ${{ matrix.version }}
@@ -220,13 +226,14 @@ jobs:
220226
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
221227
strategy:
222228
matrix:
223-
version: ["3.7.0", "3.x"]
229+
version: ["3.7.12", "3.24.5"]
224230
runs-on: windows-2019
225231
steps:
226232
- uses: actions/checkout@v3
227-
- uses: actions/setup-java@v1
233+
- uses: actions/setup-java@v4
228234
with:
229-
java-version: '11'
235+
distribution: 'zulu'
236+
java-version: '17'
230237
- uses: subosito/flutter-action@v2
231238
with:
232239
flutter-version: ${{ matrix.version }}
@@ -241,8 +248,8 @@ jobs:
241248
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
242249
strategy:
243250
matrix:
244-
version: ["3.7.0", "3.x"]
245-
runs-on: macos-12
251+
version: ["3.7.0", "3.24.5"]
252+
runs-on: macos-latest
246253
timeout-minutes: 120
247254
steps:
248255
- uses: actions/checkout@v3
@@ -261,7 +268,7 @@ jobs:
261268
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
262269
strategy:
263270
matrix:
264-
version: ['3.x']
271+
version: ['3.24.5']
265272
runs-on: macos-13
266273
timeout-minutes: 120
267274
steps:
@@ -286,7 +293,7 @@ jobs:
286293
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
287294
strategy:
288295
matrix:
289-
version: ["3.7.0", "3.x"]
296+
version: ["3.7.0", "3.24.5"]
290297
runs-on: ubuntu-latest
291298
timeout-minutes: 120
292299
steps:
@@ -304,18 +311,19 @@ jobs:
304311
rendering_test_android:
305312
name: Run Flutter Android Rendering Tests
306313
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
307-
runs-on: macos-12
314+
runs-on: ubuntu-latest
308315
timeout-minutes: 120
309316
env:
310317
TEST_APP_ID: ${{ secrets.MY_APP_ID }}
311318
steps:
312319
- uses: actions/checkout@v3
313-
- uses: actions/setup-java@v1
320+
- uses: actions/setup-java@v4
314321
with:
315-
java-version: '11'
322+
distribution: 'zulu'
323+
java-version: '17'
316324
- uses: subosito/flutter-action@v2
317325
with:
318-
flutter-version: '3.x'
326+
flutter-version: '3.24.5'
319327
cache: true
320328
- name: Checkout hoe
321329
uses: actions/checkout@v3
@@ -342,7 +350,11 @@ jobs:
342350
--flutter-package-name=agora_rtc_engine \
343351
--iris-android-cdn-url=${IRIS_CDN_URL_ANDROID} \
344352
--iris-macos-cdn-url=${IRIS_CDN_URL_MACOS}
345-
- run: flutter config --enable-macos-desktop
353+
- name: Enable KVM
354+
run: |
355+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
356+
sudo udevadm control --reload-rules
357+
sudo udevadm trigger --name-match=kvm
346358
- name: run flutter android integration tests
347359
uses: reactivecircus/android-emulator-runner@v2
348360
with:
@@ -359,13 +371,13 @@ jobs:
359371
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
360372
strategy:
361373
matrix:
362-
version: ["3.x"]
374+
version: ["3.24.5"]
363375
runs-on: macos-13 # Rendering test on ios simulator need macos 13+
364376
timeout-minutes: 60
365377
env:
366378
TEST_APP_ID: ${{ secrets.MY_APP_ID }}
367379
steps:
368-
- uses: actions/checkout@v1
380+
- uses: actions/checkout@v3
369381
- uses: subosito/flutter-action@v2
370382
with:
371383
flutter-version: ${{ matrix.version }}
@@ -391,21 +403,18 @@ jobs:
391403
--apple-package-name=io.agora.agoraRtcEngineExample \
392404
--flutter-package-name=agora_rtc_engine \
393405
--iris-ios-cdn-url=${IRIS_CDN_URL_IOS}
394-
- name: Create ios simulator
395-
run: |
396-
xcrun simctl list
397-
# We generate the screenshots base on the simulator "iPhone 13 Pro Max", so we set the SimDeviceType to iPhone 13 Pro Max.
398-
# If you need to change the SimDeviceType, you may need to re-generate the screenshots first.
399-
xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-13-Pro-Max com.apple.CoreSimulator.SimRuntime.iOS-16-4 | xargs xcrun simctl boot
406+
- uses: futureware-tech/simulator-action@v3
407+
with:
408+
model: 'iPhone 15'
400409
- run: bash ci/rendering_test_ios.sh
401410

402411
rendering_test_macos:
403412
name: Run Flutter macOS Rendering Tests
404413
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
405414
strategy:
406415
matrix:
407-
version: ['3.x']
408-
runs-on: macos-12
416+
version: ['3.24.5']
417+
runs-on: macos-latest
409418
timeout-minutes: 120
410419
env:
411420
TEST_APP_ID: ${{ secrets.MY_APP_ID }}
@@ -499,7 +508,7 @@ jobs:
499508
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
500509
strategy:
501510
matrix:
502-
version: ['3.x']
511+
version: ['3.24.5']
503512
runs-on: ubuntu-latest
504513
timeout-minutes: 60
505514
env:
@@ -518,7 +527,7 @@ jobs:
518527
chromedriver --port=4444 --trace-buffer-size=100000 &
519528
bash ci/run_rendering_test.sh web
520529
521-
- uses: actions/upload-artifact@v3
530+
- uses: actions/upload-artifact@v4
522531
if: failure()
523532
with:
524533
name: debug-golden-files

test_shard/fake_test_app/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ android {
4646
applicationId "com.example.fake_test_app"
4747
// You can update the following values to match your application needs.
4848
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
49-
minSdkVersion flutter.minSdkVersion
49+
minSdkVersion 21
5050
targetSdkVersion flutter.targetSdkVersion
5151
versionCode flutterVersionCode.toInteger()
5252
versionName flutterVersionName

test_shard/integration_test_app/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ android {
4646
applicationId "io.agora.integration_test_app.integration_test_app"
4747
// You can update the following values to match your application needs.
4848
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
49-
minSdkVersion flutter.minSdkVersion
49+
minSdkVersion 21
5050
targetSdkVersion flutter.targetSdkVersion
5151
versionCode flutterVersionCode.toInteger()
5252
versionName flutterVersionName

test_shard/integration_test_app/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
buildscript {
22
// Min kotlin version for Flutter SDK 3.24
3-
ext.kotlin_version = '1.7.0'
3+
ext.kotlin_version = '1.9.10'
44
repositories {
55
google()
66
mavenCentral()
@@ -27,6 +27,6 @@ subprojects {
2727
project.evaluationDependsOn(':app')
2828
}
2929

30-
task clean(type: Delete) {
30+
tasks.register("clean", Delete) {
3131
delete rootProject.buildDir
3232
}

test_shard/rendering_test/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ android {
4747
applicationId "com.example.rendering_test"
4848
// You can update the following values to match your application needs.
4949
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
50-
minSdkVersion flutter.minSdkVersion
50+
minSdkVersion 21
5151
targetSdkVersion flutter.targetSdkVersion
5252
versionCode flutterVersionCode.toInteger()
5353
versionName flutterVersionName

test_shard/rendering_test/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
buildscript {
22
// Min kotlin version for Flutter SDK 3.24
3-
ext.kotlin_version = '1.7.0'
3+
ext.kotlin_version = '1.9.10'
44
repositories {
55
google()
66
mavenCentral()

0 commit comments

Comments
 (0)