|
1 | | -# Licensed to the Apache Software Foundation (ASF) under one or more |
2 | | -# contributor license agreements. See the NOTICE file distributed with |
3 | | -# this work for additional information regarding copyright ownership. |
4 | | -# The ASF licenses this file to You under the Apache License, Version 2.0 |
5 | | -# (the "License"); you may not use this file except in compliance with |
6 | | -# the License. You may obtain a copy of the License at |
7 | | -# |
8 | | -# http://www.apache.org/licenses/LICENSE-2.0 |
9 | | -# |
10 | | -# Unless required by applicable law or agreed to in writing, software |
11 | | -# distributed under the License is distributed on an "AS IS" BASIS, |
12 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | | -# See the License for the specific language governing permissions and |
14 | | -# limitations under the License. |
15 | | - |
16 | | -name: Java CI |
17 | | - |
18 | | -on: [push, pull_request] |
19 | | - |
20 | | -jobs: |
21 | | - build: |
22 | | - |
23 | | - runs-on: ubuntu-latest |
24 | | - continue-on-error: ${{ matrix.experimental }} |
25 | | - strategy: |
26 | | - matrix: |
27 | | - java: [ 8, 11, 17 ] |
28 | | - experimental: [false] |
29 | | -# include: |
30 | | -# - java: 18-ea |
31 | | -# experimental: true |
32 | | - |
33 | | - steps: |
34 | | - - uses: actions/checkout@v2.3.5 |
35 | | - - uses: actions/cache@v2.1.6 |
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 2 | +# contributor license agreements. See the NOTICE file distributed with |
| 3 | +# this work for additional information regarding copyright ownership. |
| 4 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 5 | +# (the "License"); you may not use this file except in compliance with |
| 6 | +# the License. You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | + |
| 16 | +name: Java CI |
| 17 | + |
| 18 | +on: [push, pull_request] |
| 19 | + |
| 20 | +permissions: |
| 21 | + contents: read |
| 22 | + |
| 23 | +jobs: |
| 24 | + build: |
| 25 | + |
| 26 | + runs-on: ubuntu-latest |
| 27 | + continue-on-error: ${{ matrix.experimental }} |
| 28 | + strategy: |
| 29 | + matrix: |
| 30 | + java: [ 8, 11, 17, 21 ] |
| 31 | + experimental: [false] |
| 32 | +# include: |
| 33 | +# - java: 22-ea |
| 34 | +# experimental: true |
| 35 | + |
| 36 | + steps: |
| 37 | + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 |
36 | 38 | with: |
37 | | - path: ~/.m2/repository |
38 | | - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} |
39 | | - restore-keys: | |
40 | | - ${{ runner.os }}-maven- |
41 | | - - name: Set up JDK ${{ matrix.java }} |
42 | | - uses: actions/setup-java@v2 |
43 | | - with: |
44 | | - distribution: 'temurin' |
45 | | - java-version: ${{ matrix.java }} |
46 | | - - name: Build with Maven |
47 | | - run: mvn -V --file pom.xml --no-transfer-progress |
| 39 | + persist-credentials: false |
| 40 | + - uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 |
| 41 | + with: |
| 42 | + path: ~/.m2/repository |
| 43 | + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} |
| 44 | + restore-keys: | |
| 45 | + ${{ runner.os }}-maven- |
| 46 | + - name: Set up JDK ${{ matrix.java }} |
| 47 | + uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0 |
| 48 | + with: |
| 49 | + distribution: 'temurin' |
| 50 | + java-version: ${{ matrix.java }} |
| 51 | + - name: Build with Maven |
| 52 | + run: mvn --show-version --batch-mode --no-transfer-progress |
0 commit comments