@@ -174,8 +174,16 @@ jobs:
174
174
cd firebase-dataconnect/emulator
175
175
${{ env.FDC_FIREBASE_COMMAND }} emulators:start --only=auth >firebase.emulator.auth.log 2>&1 &
176
176
177
+ - name : Capture Logcat Logs
178
+ run : adb logcat >logcat.log &
179
+
177
180
- name : Gradle connectedCheck
181
+ id : connectedCheck
178
182
uses : reactivecircus/android-emulator-runner@v2
183
+ # Allow this GitHub Actions "job" to continue even if the tests fail so that logs from a
184
+ # failed test run get uploaded as "artifacts" and are available to investigate failed runs.
185
+ # A later step in this "job" will fail the job if this step fails
186
+ continue-on-error : true
179
187
with :
180
188
api-level : ${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}
181
189
arch : x86_64
@@ -185,21 +193,28 @@ jobs:
185
193
script : |
186
194
set -eux && ./gradlew ${{ (inputs.gradleInfoLog && '--info') || '' }} :firebase-dataconnect:connectedCheck :firebase-dataconnect:connectors:connectedCheck
187
195
188
- - uses : actions/upload-artifact@v4
189
- if : true
196
+ - name : Upload log file artifacts
197
+ uses : actions/upload-artifact@v4
190
198
with :
191
- name : logs
199
+ name : integration_test_logs
192
200
path : " **/*.log"
193
201
if-no-files-found : warn
194
202
compression-level : 9
195
203
196
- - uses : actions/upload-artifact@v4
204
+ - name : Upload Gradle build report artifacts
205
+ uses : actions/upload-artifact@v4
197
206
with :
198
- name : gradle_build_reports
207
+ name : integration_test_gradle_build_reports
199
208
path : firebase-dataconnect/**/build/reports/
200
209
if-no-files-found : warn
201
210
compression-level : 9
202
211
212
+ - name : Check test result
213
+ if : steps.connectedCheck.outcome != 'success'
214
+ run : |
215
+ echo "Failing the job since the connectedCheck step failed"
216
+ exit 1
217
+
203
218
# Check this yml file with "actionlint": https://github.com/rhysd/actionlint
204
219
# To run actionlint yourself, run `brew install actionlint` followed by
205
220
# `actionlint .github/workflows/dataconnect.yml`
0 commit comments