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()