File tree Expand file tree Collapse file tree 2 files changed +43
-15
lines changed Expand file tree Collapse file tree 2 files changed +43
-15
lines changed Original file line number Diff line number Diff line change
1
+ name : Java CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ '1.x' ]
6
+ pull_request :
7
+ branches : [ '1.x' ]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+
13
+ strategy :
14
+ matrix :
15
+ jdk : [ '8', '11' ]
16
+
17
+ steps :
18
+ - name : Checkout code
19
+ uses : actions/checkout@v2
20
+
21
+ - name : Set up JDK ${{ matrix.jdk }}
22
+ uses : actions/setup-java@v2
23
+ with :
24
+ distribution : ' temurin'
25
+ java-version : ${{ matrix.jdk }}
26
+
27
+ - name : Cache Maven packages
28
+ uses : actions/cache@v4
29
+ with :
30
+ path : ~/.m2
31
+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
32
+ restore-keys : |
33
+ ${{ runner.os }}-maven-
34
+
35
+ - name : Set up permissions
36
+ run : chmod +x ./ci/install-jdk.sh
37
+
38
+ - name : Install JDK 11
39
+ if : matrix.jdk == '11'
40
+ run : ./ci/install-jdk.sh -F 11 -L GPL
41
+
42
+ - name : Build with Maven
43
+ run : mvn test -B -Dmaven.main.skip=true -Dmaven.test.skip=true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments