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