File tree Expand file tree Collapse file tree 2 files changed +38
-2
lines changed Expand file tree Collapse file tree 2 files changed +38
-2
lines changed Original file line number Diff line number Diff line change 12
12
jobs :
13
13
build :
14
14
15
- runs-on : ubuntu-latest
15
+ runs-on : ubuntu-latest windows-latest
16
16
17
17
steps :
18
18
- uses : actions/checkout@v2
19
19
- name : Set up JDK 1.8
20
20
uses : actions/setup-java@v1
21
21
with :
22
22
java-version : 1.8
23
+
24
+ - name : Compile code
25
+ run : mvn compile
26
+
27
+ - name : Run unit tests
28
+ run : mvn test
29
+
23
30
- name : Build with Maven
24
- run : mvn -B package --file pom.xml
31
+ run : mvn -B package --file pom.xml -Dmaven.test.skip=true
32
+
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
+
42
+ - name : Upload Maven build artifact
43
+ uses : actions/upload-artifact@v1
44
+ with :
45
+ name : artifact
46
+ path : workflow-github-actions/target/workflow-github-actions-1.0-SNAPSHOT.jar
Original file line number Diff line number Diff line change 76
76
</dependencies >
77
77
</plugin >
78
78
79
+ <plugin >
80
+ <groupId >org.codehaus.mojo</groupId >
81
+ <artifactId >cobertura-maven-plugin</artifactId >
82
+ <version >2.7</version >
83
+ <configuration >
84
+ <formats >
85
+ <format >html</format >
86
+ <format >xml</format >
87
+ </formats >
88
+ <check />
89
+ </configuration >
90
+ </plugin >
91
+
92
+
79
93
</plugins >
80
94
</build >
81
95
You can’t perform that action at this time.
0 commit comments