Skip to content

Commit 876bea8

Browse files
committed
pom updated and workflow, gitignore added for spotbugs analysis
1 parent 22dd3b1 commit 876bea8

3 files changed

Lines changed: 44 additions & 1 deletion

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Codacy SpotBugs Analysis
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
spotbugs:
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up JDK
16+
uses: actions/setup-java@v3
17+
with:
18+
java-version: '22'
19+
distribution: 'temurin'
20+
21+
- name: Compile project
22+
run: mvn compile -B
23+
24+
- name: Run Codacy SpotBugs
25+
uses: codacy/codacy-analysis-cli-action@d43360362776a6789b47b99ae8973510854e2d3d
26+
with:
27+
tool: spotbugs
28+
upload: true
29+
api-token: ${{ secrets.CODACY_API_TOKEN }}

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target/

‎pom.xml‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,20 @@
55
<groupId>es.uniovi.reflection</groupId>
66
<artifactId>SyntheticProgram_CMU_SEC56</artifactId>
77
<version>1.0-SNAPSHOT</version>
8-
8+
<build>
9+
<plugins>
10+
<plugin>
11+
<groupId>org.apache.maven.plugins</groupId>
12+
<artifactId>maven-compiler-plugin</artifactId>
13+
<version>3.14.1</version>
14+
<configuration>
15+
<release>22</release>
16+
<debug>true</debug>
17+
<debuglevel>lines,vars,source</debuglevel>
18+
</configuration>
19+
</plugin>
20+
</plugins>
21+
</build>
922
<properties>
1023
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1124
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

0 commit comments

Comments
 (0)