You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2024/07/02 22:04:04 UTC

(maven-gh-actions-shared) branch only-ff created (now fef4f96)

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

sjaranowski pushed a change to branch only-ff
in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git


      at fef4f96  Allow to disable matrix build

This branch includes the following new commits:

     new fef4f96  Allow to disable matrix build

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(maven-gh-actions-shared) 01/01: Allow to disable matrix build

Posted by sj...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit fef4f968a62330635d4078bfdbdf4d8fa8864625
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Wed Jul 3 00:02:10 2024 +0200

    Allow to disable matrix build
---
 .github/workflows/maven-verify-test.yml | 8 ++++++++
 .github/workflows/maven-verify.yml      | 8 +++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/maven-verify-test.yml b/.github/workflows/maven-verify-test.yml
index deab43f..d04477a 100644
--- a/.github/workflows/maven-verify-test.yml
+++ b/.github/workflows/maven-verify-test.yml
@@ -59,3 +59,11 @@ jobs:
       maven4-enabled: true
       ff-run: false
       verify-goal: verify
+
+  # test only fail fast job
+  verify-5:
+    name: Verify 5 - disable matrix build
+    uses: ./.github/workflows/maven-verify.yml
+    needs: verify-4
+    with:
+      matrix-enabled: false
diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml
index 5e921cb..ad8bec7 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -74,6 +74,12 @@ on:
         default: '[]'
         type: string
 
+      matrix-enabled:
+        description: Determinate if use matrix build
+        required: false
+        default: true
+        type: boolean
+
       max-parallel:
         description: max parallel jobs
         required: false
@@ -243,7 +249,7 @@ jobs:
   setup-matrix:
     runs-on: "ubuntu-latest"
     needs: fail-fast-build
-    if: always() && ( !inputs.ff-run || needs.fail-fast-build.result == 'success' )
+    if: always() && inputs.matrix-enabled && ( !inputs.ff-run || needs.fail-fast-build.result == 'success' )
     outputs:
       maven: ${{ steps.maven.outputs.matrix }}
       exclude: ${{ steps.exclude.outputs.matrix }}