From 667ab011efcc854884f119c5c83468eeb35756ee Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 14 Jan 2026 19:52:49 +0000 Subject: [PATCH] ci: upload test reports as GitHub artifacts - Add artifact upload for unit test reports in build job - Add artifact upload for integration test reports in integration-test job - Add artifact upload for test reports in release workflow - Use actions/upload-artifact@v4 with if: always() to capture reports even on test failure - Name artifacts with Java version for matrix builds Co-authored-by: jhamon --- .github/workflows/pr.yml | 16 ++++++++++++++++ .github/workflows/release.yml | 8 ++++++++ 2 files changed, 24 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 9acfb84c..5a7baa46 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -41,6 +41,14 @@ jobs: - name: Execute Gradle build run: gradle clean build + - name: Upload unit test reports + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-reports-java-${{ matrix.versions.java }} + path: build/reports/tests/test/ + if-no-files-found: ignore + - name: Build jar run: gradle jar @@ -84,6 +92,14 @@ jobs: PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }} PINECONE_ENVIRONMENT: ${{ secrets.PINECONE_ENVIRONMENT }} + - name: Upload integration test reports + uses: actions/upload-artifact@v4 + if: always() + with: + name: integration-test-reports-java-${{ matrix.versions.java }} + path: build/reports/tests/integrationTest/ + if-no-files-found: ignore + cleanup: runs-on: ubuntu-latest needs: [build, integration-test] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a7037b47..58183478 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -63,6 +63,14 @@ jobs: - name: Build with Gradle run: ./gradlew clean build + - name: Upload test reports + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-reports-release + path: build/reports/tests/test/ + if-no-files-found: ignore + - name: Publish to Maven Central env: ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_KEY_ID }}