Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 8d0faa3

Browse files
committed
FF-36 added codecov.io
1 parent 8eb0244 commit 8d0faa3

File tree

2 files changed

+124
-80
lines changed

2 files changed

+124
-80
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ jobs:
1414
java-version: '11.0.8'
1515
architecture: x64
1616
- name: Run tests with maven.
17-
run: mvn -B test --file pom.xml
17+
run: mvn -B test --file pom.xml
18+
- name: upload codecov
19+
run: bash <(curl -s https://codecov.io/bash) -vZ

pom.xml

Lines changed: 121 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,135 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4-
<modelVersion>4.0.0</modelVersion>
5-
<parent>
6-
<groupId>org.springframework.boot</groupId>
7-
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>2.3.4.RELEASE</version>
9-
<relativePath/> <!-- lookup parent from repository -->
10-
</parent>
11-
<groupId>de.filefighter</groupId>
12-
<artifactId>rest</artifactId>
13-
<version>0.0.1-SNAPSHOT</version>
14-
<name>rest</name>
15-
<description>RestApi</description>
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<groupId>org.springframework.boot</groupId>
7+
<artifactId>spring-boot-starter-parent</artifactId>
8+
<version>2.3.4.RELEASE</version>
9+
<relativePath/> <!-- lookup parent from repository -->
10+
</parent>
11+
<groupId>de.filefighter</groupId>
12+
<artifactId>rest</artifactId>
13+
<version>0.0.1-SNAPSHOT</version>
14+
<name>rest</name>
15+
<description>RestApi</description>
1616

17-
<properties>
18-
<java.version>11</java.version>
19-
</properties>
17+
<properties>
18+
<java.version>11</java.version>
19+
</properties>
2020

21-
<dependencies>
21+
<dependencies>
2222

23-
<dependency>
24-
<groupId>org.springframework.boot</groupId>
25-
<artifactId>spring-boot-starter-web</artifactId>
26-
</dependency>
23+
<dependency>
24+
<groupId>org.springframework.boot</groupId>
25+
<artifactId>spring-boot-starter-web</artifactId>
26+
</dependency>
2727

28-
<!--
29-
<dependency>
30-
<groupId>org.springframework.boot</groupId>
31-
<artifactId>spring-boot-starter-data-mongodb</artifactId>
32-
</dependency>
33-
-->
28+
<!--
29+
<dependency>
30+
<groupId>org.springframework.boot</groupId>
31+
<artifactId>spring-boot-starter-data-mongodb</artifactId>
32+
</dependency>
33+
-->
3434

35-
<dependency>
36-
<groupId>io.springfox</groupId>
37-
<artifactId>springfox-boot-starter</artifactId>
38-
<version>3.0.0</version>
39-
</dependency>
35+
<dependency>
36+
<groupId>io.springfox</groupId>
37+
<artifactId>springfox-boot-starter</artifactId>
38+
<version>3.0.0</version>
39+
</dependency>
4040

41-
<dependency>
42-
<groupId>org.projectlombok</groupId>
43-
<artifactId>lombok</artifactId>
44-
<version>1.18.12</version>
45-
</dependency>
41+
<dependency>
42+
<groupId>org.projectlombok</groupId>
43+
<artifactId>lombok</artifactId>
44+
<version>1.18.12</version>
45+
</dependency>
4646

47-
<!-- tag::spring-hateoas[] -->
48-
<dependency>
49-
<groupId>org.springframework.boot</groupId>
50-
<artifactId>spring-boot-starter-hateoas</artifactId>
51-
</dependency>
52-
<!-- end::spring-hateoas[] -->
47+
<!-- tag::spring-hateoas[] -->
48+
<dependency>
49+
<groupId>org.springframework.boot</groupId>
50+
<artifactId>spring-boot-starter-hateoas</artifactId>
51+
</dependency>
52+
<!-- end::spring-hateoas[] -->
5353

54-
<!-- TESTING -->
55-
<dependency>
56-
<groupId>org.junit.jupiter</groupId>
57-
<artifactId>junit-jupiter</artifactId>
58-
<scope>test</scope>
59-
</dependency>
60-
<dependency>
61-
<groupId>org.mockito</groupId>
62-
<artifactId>mockito-core</artifactId>
63-
<version>3.5.7</version>
64-
</dependency>
65-
<dependency>
66-
<groupId>org.mockito</groupId>
67-
<artifactId>mockito-inline</artifactId>
68-
<version>3.5.5</version>
69-
</dependency>
70-
<dependency>
71-
<groupId>org.jetbrains</groupId>
72-
<artifactId>annotations</artifactId>
73-
<version>20.1.0</version>
74-
</dependency>
75-
<dependency>
76-
<groupId>org.springframework.boot</groupId>
77-
<artifactId>spring-boot-starter-test</artifactId>
78-
<scope>test</scope>
79-
</dependency>
80-
<!-- TESTING -->
54+
<!-- TESTING -->
55+
<dependency>
56+
<groupId>org.junit.jupiter</groupId>
57+
<artifactId>junit-jupiter</artifactId>
58+
<scope>test</scope>
59+
</dependency>
60+
<dependency>
61+
<groupId>org.mockito</groupId>
62+
<artifactId>mockito-core</artifactId>
63+
<version>3.5.7</version>
64+
</dependency>
65+
<dependency>
66+
<groupId>org.mockito</groupId>
67+
<artifactId>mockito-inline</artifactId>
68+
<version>3.5.5</version>
69+
</dependency>
70+
<dependency>
71+
<groupId>org.jetbrains</groupId>
72+
<artifactId>annotations</artifactId>
73+
<version>20.1.0</version>
74+
</dependency>
75+
<dependency>
76+
<groupId>org.springframework.boot</groupId>
77+
<artifactId>spring-boot-starter-test</artifactId>
78+
<scope>test</scope>
79+
</dependency>
80+
<!-- TESTING -->
8181

82-
</dependencies>
82+
</dependencies>
8383

84-
<build>
85-
<plugins>
86-
<plugin>
87-
<groupId>org.springframework.boot</groupId>
88-
<artifactId>spring-boot-maven-plugin</artifactId>
89-
</plugin>
90-
</plugins>
91-
</build>
9284

85+
<build>
86+
<plugins>
87+
<plugin>
88+
<groupId>org.springframework.boot</groupId>
89+
<artifactId>spring-boot-maven-plugin</artifactId>
90+
</plugin>
91+
<plugin>
92+
<groupId>org.jacoco</groupId>
93+
<artifactId>jacoco-maven-plugin</artifactId>
94+
<version>0.8.5</version>
95+
<executions>
96+
<execution>
97+
<goals>
98+
<goal>prepare-agent</goal>
99+
</goals>
100+
</execution>
101+
<!-- attached to Maven test phase -->
102+
<execution>
103+
<id>report</id>
104+
<phase>test</phase>
105+
<goals>
106+
<goal>report</goal>
107+
</goals>
108+
</execution>
109+
110+
<execution>
111+
<id>jacoco-check</id>
112+
<goals>
113+
<goal>check</goal>
114+
</goals>
115+
<configuration>
116+
<rules>
117+
<rule>
118+
<element>PACKAGE</element>
119+
<limits>
120+
<limit>
121+
<counter>LINE</counter>
122+
<value>COVEREDRATIO</value>
123+
<minimum>0.9</minimum>
124+
</limit>
125+
</limits>
126+
</rule>
127+
</rules>
128+
</configuration>
129+
</execution>
130+
131+
</executions>
132+
</plugin>
133+
</plugins>
134+
</build>
93135
</project>

0 commit comments

Comments
 (0)