Skip to content

Commit

Permalink
ci: coverage report fix (#198)
Browse files Browse the repository at this point in the history
Configured the Jacoco plugin to specify the output directory for report
generation. This change ensures that the report is consistently placed
in the target directory for easier access and management.
  • Loading branch information
pflynn-virtru authored Oct 21, 2024
1 parent 33c9513 commit dcfbb56
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0
- uses: bufbuild/buf-setup-action@2211e06e8cf26d628cda2eea15c95f8c42b080b3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -62,11 +64,25 @@ jobs:
java-version: "17"
distribution: "temurin"
server-id: github
- name: Cache SonarCloud packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Maven Test Coverage
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUF_INPUT_HTTPS_USERNAME: opentdf-bot
BUF_INPUT_HTTPS_PASSWORD: ${{ secrets.PERSONAL_ACCESS_TOKEN_OPENTDF }}
run: mvn --batch-mode clean verify -P coverage
run: mvn --batch-mode clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=opentdf_java-sdk -P coverage

platform-integration:
runs-on: ubuntu-22.04
Expand Down
1 change: 1 addition & 0 deletions sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@
</goals>
<configuration>
<dataFile>${project.parent.basedir}/target/jacoco.exec</dataFile>
<outputDirectory>${project.parent.basedir}/target/site/jacoco/</outputDirectory>
<formats>
<format>XML</format>
</formats>
Expand Down

0 comments on commit dcfbb56

Please sign in to comment.