From b6e6db7ede5aee4a45b33ff278ca67462653706f Mon Sep 17 00:00:00 2001 From: Trevor McGuire Date: Wed, 13 Mar 2024 23:19:22 -0700 Subject: [PATCH] Fix upload-artifact glob paths Some unit tests are nested deeper than 1 level, so switch to using "**" rather than "*". Also upgradles upload-artifact to v4 --- .github/workflows/PullRequestWorkflow.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/PullRequestWorkflow.yaml b/.github/workflows/PullRequestWorkflow.yaml index ea32c2128..1f5f5c3c8 100644 --- a/.github/workflows/PullRequestWorkflow.yaml +++ b/.github/workflows/PullRequestWorkflow.yaml @@ -36,7 +36,7 @@ jobs: run: ./gradlew assemble --parallel --build-cache - name: Upload build outputs (APKs) - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-outputs path: app/build/outputs @@ -44,10 +44,11 @@ jobs: - name: Upload build reports if: always() continue-on-error: true - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-reports - path: "*/build/reports" + path: | + **/build/reports test: name: Unit Tests @@ -76,10 +77,11 @@ jobs: - name: Upload test reports on failure if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test-reports - path: "*/build/reports/tests" + path: | + **/build/reports/tests spotless: name: Spotless Check