Specify maven version in build
@@ -20,18 +20,14 @@ jobs:
# test against latest update of each major Java version, as well as specific updates of LTS versions:
os: [ubuntu-18.04, windows-latest]
RUNTIME: [ol, wlp]
- RUNTIME_VERSION: [21.0.0.3, 20.0.0.12]
+ RUNTIME_VERSION: [21.0.0.6, 21.0.0.3]
java: [11, 8]
exclude:
- java: 8
- RUNTIME_VERSION: 20.0.0.12
+ RUNTIME_VERSION: 21.0.0.3
name: ${{ matrix.RUNTIME }} ${{ matrix.RUNTIME_VERSION }}, Java ${{ matrix.java }}, ${{ matrix.os }}
steps:
- - name: Setup Java ${{ matrix.java }}
- uses: joschi/setup-jdk@v2
- with:
- java-version: ${{ matrix.java }}
- name: Checkout ci.maven
uses: actions/checkout@v2
- name: Checkout ci.common
@@ -44,6 +40,16 @@ jobs:
with:
repository: OpenLiberty/ci.ant
path: ci.ant
+ - name: Set up Maven
+ uses: stCarolas/setup-maven@v4.2
+ with:
+ maven-version: 3.8.1
+ - name: Setup Java ${{ matrix.java }}
+ uses: actions/setup-java@v2
+ with:
+ distribution: 'temurin'
+ java-version: ${{ matrix.java }}
+ cache: 'maven'
- name: Cache maven packages
uses: actions/cache@v2
with:
