Skip to content

Commit 293dbb9

Browse files
add: Run SpotBugs in GitHub Actions (#206)
1 parent 8db03cc commit 293dbb9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/cicd.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,20 @@ jobs:
111111
sudo apt-get install -y clang-format cppcheck
112112
curl -L -o google-java-format.jar https://github.com/google/google-java-format/releases/download/v1.15.0/google-java-format-1.15.0-all-deps.jar
113113
curl -L -o pmd-bin-6.52.0.zip https://github.com/pmd/pmd/releases/download/pmd_releases%2F6.52.0/pmd-bin-6.52.0.zip
114+
curl -L -o spotbugs-4.7.3.zip https://github.com/spotbugs/spotbugs/releases/download/4.7.3/spotbugs-4.7.3.zip
114115
unzip pmd-bin-6.52.0.zip
116+
unzip spotbugs-4.7.3.zip
115117
116118
- name: Check format with google-java-format and clang-format
117119
run: |
118120
export PATH_GOOGLE_JAVA_FORMAT=${PWD}/google-java-format.jar
119121
./check-format
120122
echo $?
121123
124+
- name: Run SpotBugs
125+
run: |
126+
java -jar spotbugs-4.7.3/lib/spotbugs.jar -textui libcobj/
127+
122128
- name: Run PMD
123129
run: |
124130
pmd-bin-6.52.0/bin/run.sh pmd -d ${PWD}/libcobj/src -R ${PWD}/.github/ruleset.xml -f text

0 commit comments

Comments
 (0)