You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2022/01/17 22:02:52 UTC
[maven-gh-actions-shared] 01/01: max-parallel and timeout-minutes
This is an automated email from the ASF dual-hosted git repository.
tibordigana pushed a commit to branch v2
in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git
commit 774cec3e533a6dd4aabb7298c12b6cd7e2e2ef30
Author: Tibor Digaňa <ti...@apache.org>
AuthorDate: Sat Jan 8 22:55:20 2022 +0100
max-parallel and timeout-minutes
---
.github/workflows/maven-verify.yml | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml
index 5d63395..ce175b1 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -50,6 +50,18 @@ on:
default: '[]'
type: string
+ max-parallel:
+ description: 'max parallel jobs'
+ required: false
+ default: 100
+ type: number
+
+ timeout-minutes:
+ description: 'timeout-minutes used by the builds (defaults to 360)'
+ required: false
+ default: 360
+ type: number
+
jdk-distribution-matrix:
description: "jdk distribution matrix"
required: false
@@ -87,6 +99,12 @@ on:
default: '-DskipTests -P reporting site'
type: string
+ ff-timeout-minutes:
+ description: 'timeout-minutes used by fail-fast-build jobs (defaults to 360)'
+ required: false
+ default: 360
+ type: number
+
verify-goal:
description: The Maven goal used by verfy jobs
required: false
@@ -116,6 +134,7 @@ jobs:
fail-fast-build:
name: ${{ inputs.ff-os }} jdk-${{ inputs.ff-jdk }}-${{ inputs.ff-jdk-distribution }}
runs-on: ${{ inputs.ff-os }}
+ timeout-minutes: ${{ inputs.ff-timeout-minutes }}
# execute on any push or pull request from forked repo
if: github.event_name == 'push' || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork )
@@ -160,7 +179,7 @@ jobs:
verify:
needs: fail-fast-build
name: ${{ matrix.os }} jdk-${{ matrix.jdk }}-${{ matrix.distribution }}
-
+ timeout-minutes: ${{ inputs.timeout-minutes }}
runs-on: ${{ matrix.os }}
strategy:
@@ -170,6 +189,7 @@ jobs:
jdk: ${{ fromJSON( inputs.jdk-matrix ) }}
distribution: ${{ fromJSON( inputs.jdk-distribution-matrix ) }}
exclude: ${{ fromJSON( inputs.matrix-exclude ) }}
+ max-parallel: ${{ inputs.max-parallel }}
steps:
- name: Should run