11name : CI
22
3+ permissions :
4+ contents : read
5+
36on :
47 push :
58 branches : [main]
1518 runs-on : ubuntu-latest
1619
1720 steps :
18- - uses : actions/checkout@v4
21+ - uses : actions/checkout@v6
1922
2023 - uses : subosito/flutter-action@v2
2124 with :
3740 run : flutter test ./test/* --coverage
3841
3942 - name : Upload coverage report as artifact
40- uses : actions/upload-artifact@v4
43+ uses : actions/upload-artifact@v6
4144 with :
4245 name : flutter-coverage
4346 path : coverage/lcov.info
4649 runs-on : ubuntu-latest
4750
4851 steps :
49- - uses : actions/checkout@v4
52+ - uses : actions/checkout@v6
5053
5154 - uses : subosito/flutter-action@v2
5255 with :
6669 runs-on : macos-latest
6770
6871 steps :
69- - uses : actions/checkout@v4
72+ - uses : actions/checkout@v6
7073
7174 - uses : subosito/flutter-action@v2
7275 with :
@@ -106,7 +109,7 @@ jobs:
106109 build/reports/EventideTests.xcresult > build/reports/ios-coverage.xml
107110
108111 - name : Upload coverage report as artifact
109- uses : actions/upload-artifact@v4
112+ uses : actions/upload-artifact@v6
110113 with :
111114 name : ios-coverage
112115 path : build/reports/ios-coverage.xml
@@ -115,9 +118,9 @@ jobs:
115118 runs-on : ubuntu-latest
116119
117120 steps :
118- - uses : actions/checkout@v4
121+ - uses : actions/checkout@v6
119122
120- - uses : actions/setup-java@v4
123+ - uses : actions/setup-java@v5
121124 with :
122125 distribution : ${{ env.JAVA_DISTRIBUTION }}
123126 java-version : ${{ env.JAVA_VERSION }}
@@ -135,10 +138,50 @@ jobs:
135138 ./example/android/gradlew testDebugUnitTest -p ./example/android/
136139
137140 - name : Upload coverage report as artifact
138- uses : actions/upload-artifact@v4
141+ uses : actions/upload-artifact@v6
139142 with :
140143 name : android-coverage
141144 path : android/build/reports/jacocoTestReport.xml
145+
146+ ios-build-spm :
147+ runs-on : macos-latest
148+
149+ steps :
150+ - uses : actions/checkout@v6
151+
152+ - uses : subosito/flutter-action@v2
153+ with :
154+ channel : ' stable'
155+
156+ - name : Install dependencies
157+ run : |
158+ flutter config --enable-swift-package-manager
159+ flutter pub get
160+ cd example
161+ flutter build ios --config-only --no-codesign
162+
163+ - name : Build iOS framework with SPM
164+ run : |
165+ cd example
166+ flutter build ios --simulator
167+
168+ android-build :
169+ runs-on : ubuntu-latest
170+ steps :
171+ - uses : actions/checkout@v6
172+
173+ - uses : subosito/flutter-action@v2
174+ with :
175+ channel : ' stable'
176+
177+ - name : Install dependencies
178+ run : |
179+ flutter pub get
180+
181+ - name : Build Android APK
182+ run : |
183+ cd example
184+ flutter build apk --debug
142185
143186 upload-coverage :
144187 runs-on : ubuntu-latest
0 commit comments