test(act): allow configurable concurrent jobs (default 5)

This commit is contained in:
kevinveenbirkenbach committed 2026-03-20 21:08:10 +01:00
1 parent e49631fec6
commit 009e4e053f
1 file changed
+4
+4
View File
@@ -9,6 +9,7 @@ set -euo pipefail
: "${ACT_NETWORK:=host}"
: "${ACT_PULL:=false}"
: "${ACT_RM:=true}"
: "${ACT_CONCURRENT_JOBS:=5}"
: "${ACT_PLATFORM_IMAGE:=catthehacker/ubuntu:act-latest}"
echo "=== act: workflow=${ACT_WORKFLOW} event=${ACT_EVENT} job=${ACT_JOB:-<all>} matrix=${ACT_MATRIX:-<none>} ==="
@@ -31,6 +32,9 @@ fi
if [[ -n "${ACT_NETWORK}" ]]; then
cmd+=(--network "${ACT_NETWORK}")
fi
if [[ -n "${ACT_CONCURRENT_JOBS}" ]]; then
cmd+=(--concurrent-jobs "${ACT_CONCURRENT_JOBS}")
fi
cmd+=(--pull="${ACT_PULL}")
if [[ "${ACT_RM}" == "true" ]]; then