@@ -2,7 +2,9 @@ name: dargon2_flutter
22
33on :
44 push :
5+ branches : [main]
56 pull_request :
7+ branches : [main]
68
79defaults :
810 run :
@@ -13,23 +15,23 @@ jobs:
1315 runs-on : macos-latest
1416 steps :
1517 - name : Checkout
16- uses : actions/checkout@v2
18+ uses : actions/checkout@v4
1719 with :
1820 submodules : recursive
1921 - name : Setup Java
20- uses : actions/setup-java@v2
22+ uses : actions/setup-java@v4
2123 with :
2224 java-version : ' 17'
2325 distribution : ' zulu'
2426 - name : Gradle cache
25- uses : actions/cache@v2
27+ uses : actions/cache@v4
2628 with :
2729 path : |
2830 ~/.gradle/caches
2931 ~/.gradle/wrapper
3032 key : gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
3133 - name : AVD cache
32- uses : actions/cache@v2
34+ uses : actions/cache@v4
3335 id : avd-cache
3436 with :
3537 path : |
5658 mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
5759 mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
5860 mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
59- mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
61+ mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
6062 - name : Run Integration Tests
61- uses : reactivecircus/android-emulator-runner@v2.22.0
63+ uses : reactivecircus/android-emulator-runner@v2.30.1
6264 with :
6365 api-level : 33
6466 target : google_apis
@@ -67,10 +69,10 @@ jobs:
6769 script : flutter test integration_test/
6870
6971 test_ios :
70- runs-on : macos-latest
72+ runs-on : macos-14
7173 steps :
7274 - name : Checkout
73- uses : actions/checkout@v2
75+ uses : actions/checkout@v4
7476 with :
7577 submodules : recursive
7678 - name : Download Flutter
8587 - name : Start Simulator
8688 run : |
8789 UDID=$(
88- xcrun simctl list devices | grep "iPhone 13 (" | awk -F"[()]" '{print $2}' | awk 'NR==1{print $1}'
90+ xcrun simctl list devices | grep "iPhone 15 (" | awk -F"[()]" '{print $2}' | awk 'NR==1{print $1}'
8991 )
9092 xcrun simctl boot "${UDID:?No Simulator with this name found}"
9193 - name : Use Test Pubspec Files
@@ -108,7 +110,7 @@ jobs:
108110 test_web :
109111 runs-on : ubuntu-20.04
110112 steps :
111- - uses : actions/checkout@v2
113+ - uses : actions/checkout@v4
112114 - uses : subosito/flutter-action@v2
113115 - name : Use Test Pubspec Files
114116 run : |
@@ -146,7 +148,7 @@ jobs:
146148 FLUTTER_CHANNEL : stable
147149 steps :
148150 - name : Checkout
149- uses : actions/checkout@v2
151+ uses : actions/checkout@v4
150152 with :
151153 submodules : recursive
152154 - name : Download Flutter
0 commit comments