You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2020/04/29 09:30:54 UTC
[maven-invoker-plugin] branch master updated: [MINVOKER-262] GitHub
Action confirm build on multiple jdk (#19)
This is an automated email from the ASF dual-hosted git repository.
olamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 15ba187 [MINVOKER-262] GitHub Action confirm build on multiple jdk (#19)
15ba187 is described below
commit 15ba1875a9f634473105aff383c92295e172b587
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Wed Apr 29 11:30:44 2020 +0200
[MINVOKER-262] GitHub Action confirm build on multiple jdk (#19)
---
.github/workflows/maven.yml | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index db344ff..e171960 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-name: Java CI
+name: GitHub CI
on: [push, pull_request]
@@ -25,18 +25,28 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
+ java: [7, 8, 11, 14]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
- uses: actions/checkout@v1
+ uses: actions/checkout@v2
- - name: Set up JDK 1.8
+ - name: Set up cache for ~./m2/repository
+ uses: actions/cache@v1
+ with:
+ path: ~/.m2/repository
+ key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ maven-${{ matrix.os }}-java${{ matrix.java }}-
+ maven-${{ matrix.os }}-
+
+ - name: Set up JDK
uses: actions/setup-java@v1
with:
- java-version: 1.8
+ java-version: ${{ matrix.java }}
- name: Build with Maven
- run: mvn install -e -B -V --no-transfer-progress -P run-its
+ run: mvn verify -e -B -V -P run-its