File tree Expand file tree Collapse file tree 2 files changed +36
-7
lines changed Expand file tree Collapse file tree 2 files changed +36
-7
lines changed Original file line number Diff line number Diff line change 30
30
key : ${{ runner.os }}-node-${{ hashFiles('**/pom.xml', '**/package.json') }}
31
31
restore-keys : |
32
32
${{ runner.os}}-node_modules-
33
- - name : Build and publish package
33
+ - name : Build and publish package ${{ matrix.java-version }}
34
34
run : |
35
35
mvn -B versions:set -DnewVersion=$GITHUB_SHA -DgenerateBackupPoms=false
36
36
mvn -B -DskipTests -Pskip-shaded-web-jar -Pskip-tools-jar source:jar deploy
37
37
env :
38
38
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
+ build-only :
40
+ runs-on : ubuntu-20.04
41
+ strategy :
42
+ fail-fast : false
43
+ matrix :
44
+ java-version : [ 18 ]
45
+ steps :
46
+ - uses : actions/checkout@v2
47
+ - uses : actions/setup-java@v2
48
+ with :
49
+ java-version : ${{ matrix.java-version }}
50
+ distribution : temurin
51
+ - name : Cache Maven artifacts
52
+ uses : actions/cache@v2
53
+ with :
54
+ path : ~/.m2/repository
55
+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
56
+ restore-keys : |
57
+ ${{ runner.os }}-maven-
58
+ - name : Cache node
59
+ uses : actions/cache@v2
60
+ with :
61
+ path : web-bundle/node
62
+ key : ${{ runner.os }}-node-${{ hashFiles('**/pom.xml') }}
63
+ restore-keys : |
64
+ ${{ runner.os}}-node-
65
+ - name : Cache node_modules
66
+ uses : actions/cache@v2
67
+ with :
68
+ path : web-bundle/node_modules
69
+ key : ${{ runner.os }}-node-${{ hashFiles('**/pom.xml', '**/package.json') }}
70
+ restore-keys : |
71
+ ${{ runner.os}}-node_modules-
72
+ - name : Build ${{ matrix.java-version }}
73
+ run : mvn -B clean test
Original file line number Diff line number Diff line change @@ -13,12 +13,6 @@ matrix:
13
13
include :
14
14
- name : JDK8
15
15
env : JDK='8/ga' # for backward compatibility and release
16
- - name : JDK17
17
- env : JDK='17/ga'# latest LTS
18
- - name : JDK18
19
- env : JDK='18/ga'# latest
20
- - name : JDK19-ea
21
- env : JDK='19/ea'# latest early access
22
16
23
17
# avoid default dependency command for maven, 'true' means 'return true' and continue
24
18
install : true
You can’t perform that action at this time.
0 commit comments