mirror of
https://github.com/apache/maven.git
synced 2025-02-21 01:15:42 +00:00
(doc) Update GH build config - bump 17-ea to 17, use new setup-java@2 action
This commit is contained in:
parent
4fafe44112
commit
c825b97bf7
24
.github/workflows/maven.yml
vendored
24
.github/workflows/maven.yml
vendored
@ -29,21 +29,12 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up cache for ~/.m2/repository
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: maven-${{ matrix.os }}-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
maven-${{ matrix.os }}-
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v1
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: 8
|
||||
distribution: 'temurin'
|
||||
cache: 'maven'
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn verify -e -B -V -DdistributionFileName=apache-maven
|
||||
@ -67,7 +58,8 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||
java: [8, 11, 16, 17-ea]
|
||||
java: [8, 11, 17]
|
||||
|
||||
fail-fast: false
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
@ -131,9 +123,11 @@ jobs:
|
||||
path: built-maven-wrapper/
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v1
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
distribution: 'temurin'
|
||||
cache: 'maven'
|
||||
|
||||
- name: Running integration tests
|
||||
shell: bash
|
||||
|
Loading…
x
Reference in New Issue
Block a user