Skip to content

Commit d7ea33c

Browse files
authored
Replace hardcoded test report path by wildcard pattern (#364)
* Collect test reports from all modules * Fix android test reports path
1 parent b50dcf2 commit d7ea33c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/pull_request.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,18 @@ jobs:
5050
if: failure()
5151
with:
5252
name: "JS Test Report HTML"
53-
path: "firebase-firestore/build/reports/tests/jsLegacyTest/"
53+
path: |
54+
**/build/reports/tests/jsLegacyTest/
55+
**/build/reports/tests/jsLegacyBrowserTest/
56+
**/build/reports/tests/jsLegacyNodeTest/
5457
- name: Run iOS Tests
5558
run: ./gradlew cleanTest iosX64Test
5659
- name: Upload iOS test artifact
5760
uses: actions/upload-artifact@v2
5861
if: failure()
5962
with:
6063
name: "iOS Test Report HTML"
61-
path: "firebase-firestore/build/reports/tests/iosTest/"
64+
path: "**/build/reports/tests/iosX64Test/"
6265
- name: AVD cache
6366
uses: actions/cache@v3
6467
id: avd-cache
@@ -89,4 +92,4 @@ jobs:
8992
if: failure()
9093
with:
9194
name: "Android Test Report HTML"
92-
path: "firebase-firestore/build/reports/tests/androidTests/"
95+
path: "**/build/reports/androidTests/"

0 commit comments

Comments
 (0)