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 }}