Skip to content

Commit a367025

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

File tree

5 files changed

+38
-34
lines changed

5 files changed

+38
-34
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 29 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,16 +85,17 @@ 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:
9494
- uses: actions/checkout@v1
95-
- uses: actions/setup-java@v1
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 }}
@@ -116,7 +117,7 @@ jobs:
116117
strategy:
117118
matrix:
118119
version: ["3.7.0", "3.16"]
119-
runs-on: macos-12
120+
runs-on: macos-latest
120121
timeout-minutes: 120
121122
env:
122123
TEST_APP_ID: ${{ secrets.MY_APP_ID }}
@@ -128,16 +129,16 @@ jobs:
128129
cache: true
129130
- uses: futureware-tech/simulator-action@v1
130131
with:
131-
model: 'iPhone 13 Pro Max'
132+
model: 'iPhone 15'
132133
- run: bash ci/run_flutter_integration_test_ios.sh
133134

134135
integration_test_macos:
135136
name: Run Flutter macOS Integration Tests
136137
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
137138
strategy:
138139
matrix:
139-
version: ["3.7.0", "3.x"]
140-
runs-on: macos-12
140+
version: ["3.7.0", "3.24.5"]
141+
runs-on: macos-latest
141142
timeout-minutes: 120
142143
env:
143144
TEST_APP_ID: ${{ secrets.MY_APP_ID }}
@@ -155,7 +156,7 @@ jobs:
155156
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
156157
strategy:
157158
matrix:
158-
version: ["3.7.0", "3.x"]
159+
version: ["3.7.0", "3.24.5"]
159160
runs-on: windows-2019
160161
timeout-minutes: 120
161162
env:
@@ -177,7 +178,7 @@ jobs:
177178
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
178179
strategy:
179180
matrix:
180-
version: ['3.x']
181+
version: ['3.24.5']
181182
runs-on: ubuntu-latest
182183
timeout-minutes: 60
183184
env:
@@ -200,13 +201,14 @@ jobs:
200201
needs: flutter_codestyle_check
201202
strategy:
202203
matrix:
203-
version: ["3.7.0", "3.x"]
204+
version: ["3.7.12", "3.24.5"]
204205
runs-on: ubuntu-latest
205206
steps:
206207
- uses: actions/checkout@v3
207-
- uses: actions/setup-java@v1
208+
- uses: actions/setup-java@v4
208209
with:
209-
java-version: "11"
210+
distribution: 'zulu'
211+
java-version: '17'
210212
- uses: subosito/flutter-action@v2
211213
with:
212214
flutter-version: ${{ matrix.version }}
@@ -220,13 +222,14 @@ jobs:
220222
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
221223
strategy:
222224
matrix:
223-
version: ["3.7.0", "3.x"]
225+
version: ["3.7.12", "3.24.5"]
224226
runs-on: windows-2019
225227
steps:
226228
- uses: actions/checkout@v3
227-
- uses: actions/setup-java@v1
229+
- uses: actions/setup-java@v4
228230
with:
229-
java-version: '11'
231+
distribution: 'zulu'
232+
java-version: '17'
230233
- uses: subosito/flutter-action@v2
231234
with:
232235
flutter-version: ${{ matrix.version }}
@@ -241,8 +244,8 @@ jobs:
241244
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
242245
strategy:
243246
matrix:
244-
version: ["3.7.0", "3.x"]
245-
runs-on: macos-12
247+
version: ["3.7.0", "3.24.5"]
248+
runs-on: macos-latest
246249
timeout-minutes: 120
247250
steps:
248251
- uses: actions/checkout@v3
@@ -261,7 +264,7 @@ jobs:
261264
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
262265
strategy:
263266
matrix:
264-
version: ['3.x']
267+
version: ['3.24.5']
265268
runs-on: macos-13
266269
timeout-minutes: 120
267270
steps:
@@ -286,7 +289,7 @@ jobs:
286289
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
287290
strategy:
288291
matrix:
289-
version: ["3.7.0", "3.x"]
292+
version: ["3.7.0", "3.24.5"]
290293
runs-on: ubuntu-latest
291294
timeout-minutes: 120
292295
steps:
@@ -304,18 +307,19 @@ jobs:
304307
rendering_test_android:
305308
name: Run Flutter Android Rendering Tests
306309
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
307-
runs-on: macos-12
310+
runs-on: macos-latest
308311
timeout-minutes: 120
309312
env:
310313
TEST_APP_ID: ${{ secrets.MY_APP_ID }}
311314
steps:
312315
- uses: actions/checkout@v3
313-
- uses: actions/setup-java@v1
316+
- uses: actions/setup-java@v4
314317
with:
315-
java-version: '11'
318+
distribution: 'zulu'
319+
java-version: '17'
316320
- uses: subosito/flutter-action@v2
317321
with:
318-
flutter-version: '3.x'
322+
flutter-version: '3.24.5'
319323
cache: true
320324
- name: Checkout hoe
321325
uses: actions/checkout@v3
@@ -359,7 +363,7 @@ jobs:
359363
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
360364
strategy:
361365
matrix:
362-
version: ["3.x"]
366+
version: ["3.24.5"]
363367
runs-on: macos-13 # Rendering test on ios simulator need macos 13+
364368
timeout-minutes: 60
365369
env:
@@ -404,8 +408,8 @@ jobs:
404408
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
405409
strategy:
406410
matrix:
407-
version: ['3.x']
408-
runs-on: macos-12
411+
version: ['3.24.5']
412+
runs-on: macos-latest
409413
timeout-minutes: 120
410414
env:
411415
TEST_APP_ID: ${{ secrets.MY_APP_ID }}
@@ -499,7 +503,7 @@ jobs:
499503
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
500504
strategy:
501505
matrix:
502-
version: ['3.x']
506+
version: ['3.24.5']
503507
runs-on: ubuntu-latest
504508
timeout-minutes: 60
505509
env:
@@ -518,7 +522,7 @@ jobs:
518522
chromedriver --port=4444 --trace-buffer-size=100000 &
519523
bash ci/run_rendering_test.sh web
520524
521-
- uses: actions/upload-artifact@v3
525+
- uses: actions/upload-artifact@v4
522526
if: failure()
523527
with:
524528
name: debug-golden-files

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)