File tree Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,27 @@ jobs:
11
11
strategy :
12
12
matrix :
13
13
java : [8, 11, 15]
14
+ kubernetes : ['v1.17.13','v1.18.12','v1.19.4']
14
15
steps :
15
16
- uses : actions/checkout@v2
16
17
- uses : actions/cache@v2
17
18
with :
18
19
path : ~/.m2/repository
19
20
key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
20
21
restore-keys : |
21
- ${{ runner.os }}-maven-
22
+ ${{ runner.os }}-maven-
22
23
- name : Set up JDK
23
24
uses : actions/setup-java@v1
24
25
with :
25
26
java-version : ${{ matrix.java }}
26
- - name : Build with Maven
27
- run : mvn -B package -P no-integration-tests --file pom.xml
27
+ - name : Run unit tests
28
+ run : mvn -B test -P no-integration-tests --file pom.xml
29
+ - name : Set up Minikube
30
+ uses : manusa/actions-setup-minikube@v2.0.1
31
+ with :
32
+ minikube version : ' v1.15.0'
33
+ kubernetes version : ${{ matrix.kubernetes }}
34
+ driver : ' docker'
35
+ - name : Run integration tests
36
+ run : mvn -B package -P no-unit-tests --file pom.xml
37
+
Original file line number Diff line number Diff line change 152
152
</plugins >
153
153
</build >
154
154
</profile >
155
+ <profile >
156
+ <id >no-unit-tests</id >
157
+ <build >
158
+ <plugins >
159
+ <plugin >
160
+ <groupId >org.apache.maven.plugins</groupId >
161
+ <artifactId >maven-surefire-plugin</artifactId >
162
+ <version >${surefire.version} </version >
163
+ <configuration >
164
+ <includes >
165
+ <exclude >**/*IT.java</exclude >
166
+ </includes >
167
+ <excludes >
168
+ <include >**/*Test.java</include >
169
+ </excludes >
170
+ </configuration >
171
+ </plugin >
172
+ </plugins >
173
+ </build >
174
+ </profile >
155
175
<profile >
156
176
<id >release</id >
157
177
<build >
You can’t perform that action at this time.
0 commit comments