Skip to content

Commit 3848839

Browse files
* Add Spotbugs
* Add spotbugs tests to test workflow
1 parent ad73bfb commit 3848839

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777

7878
unit-tests:
7979
name: Unit Tests
80-
# needs: [ checkstyle, spotbugs ]
80+
needs: [ spotbugs ]
8181
runs-on: ubuntu-latest
8282
steps:
8383
- name: Checkout Repository
@@ -118,7 +118,7 @@ jobs:
118118

119119
component-tests:
120120
name: Component Tests
121-
# needs: [ checkstyle, spotbugs ]
121+
needs: [ spotbugs ]
122122
runs-on: ubuntu-latest
123123
steps:
124124
- name: Checkout Repository

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,15 @@ task integrationTest(type: Test) {
110110

111111
check.dependsOn componentTest
112112
check.dependsOn integrationTest
113+
114+
spotbugsMain {
115+
reports {
116+
html {
117+
enabled = true
118+
}
119+
xml {
120+
enabled = true
121+
}
122+
excludeFilter.set(file("spotbugs/exclude.xml"))
123+
}
124+
}

0 commit comments

Comments
 (0)