From fbd6ac2978f8d2e5211d9c0a67e196d684ea0785 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Wed, 25 Oct 2023 11:41:29 +0200 Subject: [PATCH] Fix jacoco report paths (#116) * chore(workflows): update test report paths in GitHub workflows - In os-extension-test.yml and pro-extension-test.yml, change the path for jacoco.xml from **/target/jacoco.exec to **/target/site/jacoco/jacoco.xml. This is done to correctly locate the Jacoco code coverage report. - In sonar-pull-request.yml and sonar-push.yml, update the name of the test report artifact to test-reports-jdk-17-ubuntu-latest. This is done to ensure consistency in the naming of the test report artifacts across workflows. * fix(sonar-pull-request.yml): update action for downloading unit tests report to use the correct syntax and version fix(sonar-push.yml): update action for downloading unit tests report to use the correct syntax and version * fix(workflows): update Maven test command to use 'test' goal and 'coverage' profile for better code coverage reporting The Maven test command in both os-extension-test.yml and pro-extension-test.yml workflows has been updated to use the 'test' goal and 'coverage' profile. This change will improve code coverage reporting for the tests. * chore(sonar-pull-request.yml): remove unnecessary path argument in download-artifact step chore(sonar-push.yml): remove unnecessary path argument in download-artifact step --- .github/workflows/sonar-pull-request.yml | 1 - .github/workflows/sonar-push.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/workflows/sonar-pull-request.yml b/.github/workflows/sonar-pull-request.yml index e61a6d5e..3ad3e3d5 100644 --- a/.github/workflows/sonar-pull-request.yml +++ b/.github/workflows/sonar-pull-request.yml @@ -98,7 +98,6 @@ jobs: uses: actions/download-artifact@v3 with: name: test-reports-jdk-17-ubuntu-latest - path: ./target - name: Sonar Scan env: diff --git a/.github/workflows/sonar-push.yml b/.github/workflows/sonar-push.yml index 8e9da85e..5934fcde 100644 --- a/.github/workflows/sonar-push.yml +++ b/.github/workflows/sonar-push.yml @@ -56,7 +56,6 @@ jobs: uses: actions/download-artifact@v3 with: name: test-reports-jdk-17-ubuntu-latest - path: ./target # look for dependencies in maven - name: maven-settings-xml-action