diff --git a/.deepsource.toml b/.deepsource.toml index 975a81e..f7a6d54 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -2,6 +2,11 @@ version = 1 [[analyzers]] name = "java" +enabled = true [analyzers.meta] - runtime_version = "21" \ No newline at end of file + runtime_version = "21" + +[[analyzers]] +name = "test-coverage" +enabled = true diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 38f39e4..c1eaaa1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,3 +28,12 @@ jobs: - name: Test run: mvn -B test --file pom.xml + - name: Report results to DeepSource + run: | + # Install deepsource CLI + curl https://deepsource.io/cli | sh + + # From the root directory, run the report coverage command + ./bin/deepsource report --analyzer test-coverage --key java --value-file ./target/site/jacoco/jacoco.xml + env: + DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}