@@ -173,11 +173,59 @@ jobs:
173
173
name : test-results-tooling-api-tests
174
174
path : ' **/build/reports/tests/'
175
175
176
+ run_connected_checks :
177
+ name : Run connected checks
178
+ runs-on : macos-latest
179
+ strategy :
180
+ matrix :
181
+ api-level : [ 26, 29, 32 ]
182
+ target : [ default ]
183
+ steps :
184
+ - name : Cancel previous runs
185
+
186
+ with :
187
+ access_token : ${{ github.token }}
188
+ - name : Checkout
189
+ uses : actions/checkout@v4
190
+ with :
191
+ fetch-depth : 0
192
+ - name : Set up JDK 17
193
+ uses : actions/setup-java@v4
194
+ with :
195
+ java-version : ${{ env.BUILD_JAVA_VERSION }}
196
+ distribution : ${{ env.BUILD_JAVA_DIST }}
197
+ - name : Change Gradle wrapper permissions
198
+ run : chmod +x ./gradlew
199
+ - name : Restore cache
200
+ uses : actions/cache@v3
201
+ with :
202
+ path : |
203
+ ~/.gradle/caches
204
+ ~/.gradle/wrapper
205
+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
206
+ restore-keys : |
207
+ ${{ runner.os }}-gradle-
208
+ - name : Run connected checks
209
+ uses : reactivecircus/android-emulator-runner@v2
210
+ with :
211
+ api-level : ${{ matrix.api-level }}
212
+ target : ${{ matrix.target }}
213
+ arch : x86_64
214
+ profile : Nexus 6
215
+ script : ./gradlew connectedCheck
216
+
176
217
publish :
177
218
name : Publish release
178
219
runs-on : ubuntu-latest
179
220
needs : [ build_apk, run_unit_tests, run_tooling_api_tests ]
180
- if : ${{ always() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && needs.build_apk.result == 'success' && needs.run_unit_tests.result == 'success' && needs.run_tooling_api_tests.result == 'success' }}
221
+ if : |
222
+ always()
223
+ && github.ref == 'refs/heads/main'
224
+ && github.event_name != 'pull_request'
225
+ && needs.build_apk.result == 'success'
226
+ && needs.run_unit_tests.result == 'success'
227
+ && needs.run_tooling_api_tests.result == 'success'
228
+ && needs.run_connected_checks.result == 'success'
181
229
steps :
182
230
- name : Checkout
183
231
uses : actions/checkout@v4
0 commit comments