From 19f74282be55f8de70e9f5ef8bc607da77fbae1e Mon Sep 17 00:00:00 2001 From: Conor Date: Thu, 13 Oct 2022 19:38:03 -0500 Subject: [PATCH] ci: upload test results to github for analysis (#17953) * ci: upload test results to github for analysis * fix: filter down to only test folders --- .github/workflows/gradle.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 888d06234be..1682e4fc1f1 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -540,6 +540,15 @@ jobs: path: '/actions-runner/_work/airbyte/airbyte/*' key: ${{ secrets.BUILDPULSE_ACCESS_KEY_ID }} secret: ${{ secrets.BUILDPULSE_SECRET_ACCESS_KEY }} + + - name: Upload test results to Github for analysis + if: '!cancelled()' # Run this step even when the tests fail. Skip if the workflow is cancelled. + uses: actions/upload-artifact@v3 + with: + path: | + /actions-runner/_work/airbyte/airbyte/*/build/test-results/*/*.xml + /actions-runner/_work/airbyte/airbyte/*/*/build/test-results/*/*.xml + name: test-results-build # In case of self-hosted EC2 errors, remove this block. stop-platform-build-runner: @@ -689,6 +698,15 @@ jobs: path: '/actions-runner/_work/airbyte/airbyte/*' key: ${{ secrets.BUILDPULSE_ACCESS_KEY_ID }} secret: ${{ secrets.BUILDPULSE_SECRET_ACCESS_KEY }} + + - name: Upload test results to Github for analysis + if: '!cancelled()' # Run this step even when the tests fail. Skip if the workflow is cancelled. + uses: actions/upload-artifact@v3 + with: + path: | + /actions-runner/_work/airbyte/airbyte/*/build/test-results/*/*.xml + /actions-runner/_work/airbyte/airbyte/*/*/build/test-results/*/*.xml + name: test-results-kube - uses: actions/upload-artifact@v2 if: failure()