11#
2- # Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
2+ # Copyright (c) 2021, 2024 Oracle and/or its affiliates. All rights reserved.
33#
44# This program and the accompanying materials are made available under the
55# terms of the Eclipse Public License v. 2.0 which is available at
@@ -21,39 +21,26 @@ jobs:
2121
2222 strategy :
2323 matrix :
24- java_version : [ 11, 17 ]
24+ java_version : [ 11, 17, 21 ]
2525
2626 steps :
2727 - name : Checkout for build
28- uses : actions/checkout@v2.3.4
28+ uses : actions/checkout@v4
2929 with :
3030 fetch-depth : 0
3131 - name : Set up compile JDK
32- uses : actions/setup-java@v2
32+ uses : actions/setup-java@v4
3333 with : # Compile java needs to be the highest to ensure proper compilation of the multi-release jar
34- distribution : ' adopt '
34+ distribution : ' temurin '
3535 java-version : 17
36- - name : Maven cache
37- uses : actions/cache@v2
38- env :
39- cache-name : maven-cache
40- with :
41- path :
42- ~/.m2
43- key : build-${{ env.cache-name }}
36+ cache : ' maven'
4437 - name : Copyright
4538 run : bash etc/copyright.sh
4639 - name : Checkstyle
47- run : mvn -B checkstyle:checkstyle
40+ run : mvn -B checkstyle:checkstyle -Pstaging
4841 - name : Yasson install
49- # run: mvn -U -C -Pstaging clean install -DskipTests
50- run : mvn -U -C clean install -DskipTests
51- - name : Set up JDK for tests
52- uses : actions/setup-java@v2
53- with :
54- distribution : ' adopt'
55- java-version : ${{ matrix.java_version }}
42+ run : mvn -U -C clean install -Pstaging -DskipTests
5643 - name : Yasson tests
5744 run : mvn -U -B -C -Dmaven.javadoc.skip=true -Pstaging verify
5845 - name : JSONB-API TCK
59- run : cd yasson-tck && mvn -U -B test -DargLine="-Djava.locale.providers=COMPAT"
46+ run : cd yasson-tck && mvn -U -B test -DargLine="-Djava.locale.providers=COMPAT" -Pstaging
0 commit comments