Skip to content

Commit bf37cf5

Browse files
committed
Add calculate-optimal-total-split input
1 parent c007d50 commit bf37cf5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ inputs:
5454
description: The working directory. Defaults to the current directory (string)
5555
type: string
5656
required: false
57+
calculate-optimal-total-split:
58+
description: Calculates the optimal test split. Logs a warning if split-total does not match (boolean)
59+
type: boolean
60+
required: false
61+
max-optimal-total-split-calculations:
62+
description: The maximum number of calculate-optimal-total-split calculations (integer)
63+
type: integer
64+
required: false
5765
debug:
5866
description: Enables debug logging (boolean)
5967
required: false
@@ -98,6 +106,12 @@ runs:
98106
if [ -n "${{ inputs.working-directory }}" ]; then
99107
COMMAND="$COMMAND --working-directory ${{ inputs.working-directory }}"
100108
fi
109+
if [ -n "${{ inputs.calculate-optimal-total-split }}" ]; then
110+
COMMAND="$COMMAND --calculate-optimal-total-split ${{ inputs.calculate-optimal-total-split }}"
111+
fi
112+
if [ -n "${{ inputs.max-optimal-total-split-calculations }}" ]; then
113+
COMMAND="$COMMAND --max-optimal-total-split-calculations ${{ inputs.max-optimal-total-split-calculations }}"
114+
fi
101115
if [ -n "${{ inputs.debug }}" ]; then
102116
COMMAND="$COMMAND --debug"
103117
fi

0 commit comments

Comments
 (0)