From c78f616f7458ef29b8299b7a23a693a471e0d667 Mon Sep 17 00:00:00 2001 From: Mish Ushakov Date: Wed, 17 Jan 2024 15:50:14 +0100 Subject: [PATCH 1/2] Added doc on concurrency setting --- docs/reference/workflow-syntax.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/reference/workflow-syntax.md b/docs/reference/workflow-syntax.md index 1b24dbb..8d94f75 100644 --- a/docs/reference/workflow-syntax.md +++ b/docs/reference/workflow-syntax.md @@ -47,6 +47,10 @@ Optional. Workflow config Optional. Continue workflow after step failed +### `config.concurrency` + +Optional. Tests concurrency setting. The default amount is ∞ + ### `config.http` Optional. HTTP-Client config From 81b9587005ca9411210f5ffc48002331ceea948e Mon Sep 17 00:00:00 2001 From: Mish Ushakov Date: Wed, 17 Jan 2024 15:54:45 +0100 Subject: [PATCH 2/2] Added more docs on concurrency --- action.yml | 3 +++ docs/reference/cli.md | 1 + entrypoint.sh | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/action.yml b/action.yml index 52dde08..073b10a 100644 --- a/action.yml +++ b/action.yml @@ -21,6 +21,9 @@ inputs: loadtest: description: 'load-test option. e.g "true"' required: false + concurrency: + description: 'concurrency option. e.g. "0"' + required: false runs: using: 'docker' diff --git a/docs/reference/cli.md b/docs/reference/cli.md index 5cf80b5..9531cfa 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -69,6 +69,7 @@ The `run` command lets you run a specified workflow | --secret [-s] | No | Supply secret variables (can be defined multiple times) | | --verbose [-v] | No | Verbose mode: always show request/response | | --loadtest [-load] | No | Run test in load-testing mode | +| --concurrency | No | Concurrency setting | #### **Examples** diff --git a/entrypoint.sh b/entrypoint.sh index c657ec0..afb9ac0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -20,4 +20,8 @@ if [ "$LOADTEST" == "true" ]; then EXECUTION_COMMAND="$EXECUTION_COMMAND --load" fi +if [ -n "$CONCURRENCY" ]; then + EXECUTION_COMMAND="$EXECUTION_COMMAND --concurrency $CONCURRENCY" +fi + eval $EXECUTION_COMMAND