Skip to content

Commit

Permalink
fix: Update GitHub workflow (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: brinxmat <789709+brinxmat@users.noreply.github.com>
  • Loading branch information
LarsV123 and brinxmat authored Dec 5, 2024
1 parent d8a0854 commit 099227e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
20 changes: 20 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
plugins {
id 'nebula.lint' version '20.3.0'
id 'jacoco-report-aggregation'
}

dependencies {
subprojects.forEach {
jacocoAggregation it
}
}

allprojects {
Expand All @@ -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'
Expand Down Expand Up @@ -104,6 +112,18 @@ allprojects {
}
}

tasks.named('check') {
dependsOn tasks.named('testCodeCoverageReport', JacocoReport)
}

reporting {
reports {
testCodeCoverageReport(JacocoCoverageReport) {
testType = TestSuiteType.UNIT_TEST
}
}
}

java {
withSourcesJar()
}
Expand Down

0 comments on commit 099227e

Please sign in to comment.