Skip to content

Commit e54be5d

Browse files
committed
GH Actions: Remove codacy, call jacoco badge workflow
1 parent 5e881c8 commit e54be5d

File tree

3 files changed

+29
-40
lines changed

3 files changed

+29
-40
lines changed

.github/workflows/coverage.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
3+
name: Jacoco Badge Generator
4+
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
11+
jobs:
12+
maven_version:
13+
uses: sfuhrm/github_workflows/.github/workflows/maven-expression.yml@main
14+
with:
15+
java_version: 21
16+
expression: project.version
17+
call-workflow-passing-data:
18+
needs: maven_version
19+
uses: sfuhrm/github_workflows/.github/workflows/jacoco-badge.yml@main
20+
with:
21+
java_version: 21
22+
artifact_name: jacoco-report
23+
artifact_path: ./geneticalgorithm/target/site/jacoco
24+
jacoco_csv_path: ./geneticalgorithm/target/site/jacoco/jacoco.csv
25+
committer_email: s@sfuhrm.de
26+
committer_user: "Jacoco Badge Action"

pom.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
<maven.compiler.source>1.8</maven.compiler.source>
4444
<maven.compiler.target>1.8</maven.compiler.target>
4545
<jmockit.version>1.49</jmockit.version>
46-
<jacoco.version>0.8.8</jacoco.version>
4746
</properties>
4847

4948
<dependencies>
@@ -163,16 +162,16 @@
163162
<plugin>
164163
<groupId>org.jacoco</groupId>
165164
<artifactId>jacoco-maven-plugin</artifactId>
166-
<version>${jacoco.version}</version>
165+
<version>0.8.12</version>
167166
<executions>
168167
<execution>
169-
<id>default-prepare-agent</id>
170168
<goals>
171169
<goal>prepare-agent</goal>
172170
</goals>
173171
</execution>
174172
<execution>
175-
<id>default-report</id>
173+
<id>generate-code-coverage-report</id>
174+
<phase>test</phase>
176175
<goals>
177176
<goal>report</goal>
178177
</goals>

0 commit comments

Comments
 (0)