File tree Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Original file line number Diff line number Diff line change 1
- name : Release Snapshot to Maven Central
1
+ name : Test & Release Snapshot to Maven Central
2
2
on :
3
3
push :
4
4
branchs : [ master ]
5
5
jobs :
6
- publish-snapshot :
6
+ test :
7
7
runs-on : ubuntu-latest
8
+ strategy :
9
+ matrix :
10
+ java : [11, 15]
11
+ kubernetes : ['v1.17.13','v1.18.12','v1.19.4']
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - uses : actions/cache@v2
15
+ with :
16
+ path : ~/.m2/repository
17
+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
18
+ restore-keys : |
19
+ ${{ runner.os }}-maven-
20
+ - name : Set up Java and Maven
21
+ uses : actions/setup-java@v1
22
+ with :
23
+ java-version : ${{ matrix.java }}
24
+ - name : Run unit tests
25
+ run : mvn -B test -P no-integration-tests --file pom.xml
26
+ - name : Set up Minikube
27
+
28
+ with :
29
+ minikube version : ' v1.15.1'
30
+ kubernetes version : ${{ matrix.kubernetes }}
31
+ driver : ' docker'
32
+ - name : Run integration tests
33
+ run : mvn -B package -P no-unit-tests --file pom.xml
34
+ release-snapshot :
35
+ runs-on : ubuntu-latest
36
+ needs : test
8
37
steps :
9
38
- uses : actions/checkout@v2
10
39
- name : Set up Java and Maven
You can’t perform that action at this time.
0 commit comments