Skip to content

Commit e8161ea

Browse files
committed
add codecov
1 parent 55a22dd commit e8161ea

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/demo-workflow.yml

-9
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,6 @@ jobs:
3030
- name: Build with Maven
3131
run: mvn -B package --file pom.xml -Dmaven.test.skip=true
3232

33-
- name: Upload coverage to Codecov
34-
- uses: codecov/codecov-action@v1
35-
with:
36-
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
37-
file: ./coverage.xml # optional
38-
flags: unittests # optional
39-
name: codecov-umbrella # optional
40-
fail_ci_if_error: true # optional (default = false)
41-
4233
- name: Upload Maven build artifact
4334
uses: actions/upload-artifact@v1
4435
with:

pom.xml

+14-1
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,24 @@
2626
<groupId>org.springframework.boot</groupId>
2727
<artifactId>spring-boot-starter</artifactId>
2828
<version>2.2.6.RELEASE</version>
29+
<exclusions>
30+
<exclusion>
31+
<groupId>org.springframework.boot</groupId>
32+
<artifactId>spring-boot-starter-logging</artifactId>
33+
</exclusion>
34+
</exclusions>
2935
</dependency>
3036

3137
<dependency>
3238
<groupId>org.springframework.boot</groupId>
3339
<artifactId>spring-boot-starter-web</artifactId>
3440
<version>2.2.6.RELEASE</version>
41+
<exclusions>
42+
<exclusion>
43+
<groupId>org.springframework.boot</groupId>
44+
<artifactId>spring-boot-starter-logging</artifactId>
45+
</exclusion>
46+
</exclusions>
3547
</dependency>
3648

3749
<dependency>
@@ -73,6 +85,7 @@
7385
<artifactId>junit-jupiter-engine</artifactId>
7486
<version>${junit.jupiter.version}</version>
7587
</dependency>
88+
7689
</dependencies>
7790
</plugin>
7891

@@ -85,7 +98,7 @@
8598
<format>html</format>
8699
<format>xml</format>
87100
</formats>
88-
<check />
101+
<check/>
89102
</configuration>
90103
</plugin>
91104

0 commit comments

Comments
 (0)