diff --git a/.github/workflows/bld.yml b/.github/workflows/bld.yml index 9a6af35..d758f01 100644 --- a/.github/workflows/bld.yml +++ b/.github/workflows/bld.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest env: - SONAR_JDK: "17" + COVERAGE: "17" strategy: matrix: @@ -35,18 +35,19 @@ jobs: run: ./bld compile jacoco - name: Remove pom.xml - if: success() && matrix.java-version == env.SONAR_JDK + if: success() && matrix.java-version == env.COVERAGE_SDK run: rm -rf pom.xml - name: SonarCloud Scan uses: sonarsource/sonarcloud-github-action@master - if: success() && matrix.java-version == env.SONAR_JDK + if: success() && matrix.java-version == env.COVERAGE_SDK env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 + if: success() && matrix.java-version == env.COVERAGE_SDK env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}