diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 6bc2993b3..158b15e70 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -22,6 +22,8 @@ jobs: steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Set up JDK 17 uses: actions/setup-java@v3 with: @@ -41,12 +43,13 @@ jobs: key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - name: Build with Maven - run: mvn package + run: mvn -Pcoverage package verify - name: Run Sonar Analysis run: mvn sonar:sonar - -Dsonar.login=${{ secrets.SONAR_TOKEN }} + -Pcoverage -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=bcgov-sonarcloud -Dsonar.projectKey=bcgov_VDYP env: GITHUB_TOKEN: ${{ github.token }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/pom.xml b/pom.xml index 65d6ae1ec..c997136ca 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,4 @@ - + 4.0.0 ca.bc.gov.nrs.vdyp @@ -20,18 +18,14 @@ 5.9.2 2.2 5.1.0 - - - ${project.basedir}/report-aggregate/target/site/ - jacoco-aggregate/jacoco.xml - + vdyp-core vdyp-fip vdyp-buildtools - report-aggregate + vdyp-sindex @@ -127,7 +121,11 @@ formatter-maven-plugin 2.22.0 - + + org.jacoco + jacoco-maven-plugin + 0.8.9 + @@ -149,7 +147,7 @@ - + @@ -159,7 +157,6 @@ org.jacoco jacoco-maven-plugin - 0.8.9 prepare-agent