diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4055ca09..6b5c8f41 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -63,15 +63,19 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} + - name: Run tests with coverage + run: ./gradlew debugCoverage + + - name: Upload test results if: ${{ always() }} uses: actions/upload-artifact@v4 with: name: test-results - path: "${{ github.workspace }}/**/build/reports/tests" + path: "build/reports/tests" - name: Upload jacoco report uses: actions/upload-artifact@v4 with: name: jacoco-report - path: "${{ github.workspace }}/**/build/reports/jacoco" \ No newline at end of file + path: "build/reports/jacoco" \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 44b5d8b7..a564d735 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -72,6 +72,10 @@ subprojects { tasks.register("debugCoverage") { group = "Reporting" description = "Generate Jacoco coverage reports for the debug build." - dependsOn("testDebugUnitTest") + reports { + xml.required.set(true) + html.required.set(true) + } } + } \ No newline at end of file