Skip to content

Commit ad4dacd

Browse files
committed
pom updated and workflow, gitignore added for spotbugs analysis
1 parent 4f5ecf1 commit ad4dacd

3 files changed

Lines changed: 45 additions & 2 deletions

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: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,21 @@
55
<groupId>es.uniovi.reflection</groupId>
66
<artifactId>SyntheticProgram_CMU_DCL53</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
<maven.compiler.release>22</maven.compiler.release>
1124
</properties>
12-
</project>
25+
</project>

0 commit comments

Comments
 (0)