diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a325dc7..c481557 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,5 +9,8 @@ on: jobs: build: uses: BIBSYSDEV/nva-github-workflows/.github/workflows/java.yml@v1 + with: + lint_openapi: false + lint_cloudformation: false secrets: codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }} diff --git a/build.gradle b/build.gradle index 12c2ad2..ae39ff2 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,12 @@ plugins { id 'nebula.lint' version '20.3.0' + id 'jacoco-report-aggregation' +} + +dependencies { + subprojects.forEach { + jacocoAggregation it + } } allprojects { @@ -14,6 +21,7 @@ allprojects { apply plugin: 'checkstyle' apply plugin: 'pmd' apply plugin: 'nebula.lint' + apply plugin: 'jacoco-report-aggregation' group 'no.unit.nva' version '0.5.9' @@ -104,6 +112,18 @@ allprojects { } } + tasks.named('check') { + dependsOn tasks.named('testCodeCoverageReport', JacocoReport) + } + + reporting { + reports { + testCodeCoverageReport(JacocoCoverageReport) { + testType = TestSuiteType.UNIT_TEST + } + } + } + java { withSourcesJar() }