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 2021/10/15 01:36:09 UTC

[maven-gh-actions-shared] branch main updated: add a first fail fast build and make jdk distribution matrix as well with one per default

This is an automated email from the ASF dual-hosted git repository.

olamy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git


The following commit(s) were added to refs/heads/main by this push:
     new b66262f  add a first fail fast build and make jdk distribution matrix as well with one per default
b66262f is described below

commit b66262f74f76553b3d9d4eff20fbb1696861f157
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Fri Oct 15 11:35:27 2021 +1000

    add a first fail fast build and make jdk distribution matrix as well with one per default
    
    Signed-off-by: Olivier Lamy <ol...@apache.org>
---
 .github/workflows/maven-verify-with-its.yml | 27 ++++++++++++++++++++++++++-
 .gitignore                                  |  1 +
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/maven-verify-with-its.yml b/.github/workflows/maven-verify-with-its.yml
index a24464d..761a92d 100644
--- a/.github/workflows/maven-verify-with-its.yml
+++ b/.github/workflows/maven-verify-with-its.yml
@@ -35,9 +35,33 @@ on:
         default: '[]'
         type: string
 
+      jdk-distribution-matrix:
+        description: "jdk distribution matrix"
+        default: '[ "temurin" ]'
+        type: string
+
 jobs:
 
+  build:
+    name: fail-fast-build
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2.3.4
+
+      - name: Set up JDK
+        uses: actions/setup-java@v2.3.1
+        with:
+          java-version: 8
+          distribution: 'temurin'
+          cache: 'maven'
+
+      - name: Build with Maven
+        run: mvn --errors --batch-mode --show-version -P run-its -D"invoker.streamLogsOnFailures" verify
+
   verify:
+    needs: build
     name: ${{ matrix.os }} jdk-${{ matrix.jdk }}
 
     runs-on: ${{ matrix.os }}
@@ -47,6 +71,7 @@ jobs:
       matrix:
         os:       ${{ fromJSON( inputs.os-matrix ) }}
         jdk:      ${{ fromJSON( inputs.jdk-matrix ) }}
+        distribution:      ${{ fromJSON( inputs.jdk-distribution-matrix ) }}
         exclude:  ${{ fromJSON( inputs.matrix-exclude ) }}
 
     steps:
@@ -57,7 +82,7 @@ jobs:
         uses: actions/setup-java@v2.3.1
         with:
           java-version: ${{ matrix.jdk }}
-          distribution: 'temurin'
+          distribution: ${{ matrix.distribution }}
           cache: 'maven'
 
       - name: Build with Maven
diff --git a/.gitignore b/.gitignore
index 485dee6..c38fa4e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 .idea
+*.iml