Skip to content

Commit 602c1dc

Browse files
fix: cicd.yml to run spotbugs correctly (#210)
1 parent 3325489 commit 602c1dc

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/cicd.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ jobs:
104104
distribution: 'temurin'
105105
java-version: '17'
106106

107-
# Download code formatters and static analyzers
108-
- name: Install dependencies
107+
- name: Install static analysis tools
109108
run: |
110109
sudo apt-get update -y
111110
sudo apt-get install -y clang-format cppcheck
@@ -115,6 +114,13 @@ jobs:
115114
unzip pmd-bin-6.52.0.zip
116115
unzip spotbugs-4.7.3.zip
117116
117+
- name: Install opensource COBOL 4J
118+
run: |
119+
sudo apt install -y build-essential bison flex gettext texinfo automake autoconf
120+
./configure --prefix=/usr/
121+
make
122+
sudo make install
123+
118124
- name: Check format with google-java-format and clang-format
119125
run: |
120126
export PATH_GOOGLE_JAVA_FORMAT=${PWD}/google-java-format.jar
@@ -123,7 +129,7 @@ jobs:
123129
124130
- name: Run SpotBugs
125131
run: |
126-
java -jar spotbugs-4.7.3/lib/spotbugs.jar -textui libcobj/
132+
java -jar spotbugs-4.7.3/lib/spotbugs.jar -textui libcobj/output
127133
128134
- name: Run PMD
129135
run: |

0 commit comments

Comments
 (0)