Skip to content

Commit 28d9c8d

Browse files
committed
Replace average-time option with new-test-time
1 parent 52df899 commit 28d9c8d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

action.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,21 @@ inputs:
3535
- gradle
3636
default: list
3737
average-time:
38+
deprecationMessage: This option is deprecated and should no longer be used. Use new-test-time instead.
3839
description: Use the average test time from tests with JUnit reports for tests without JUnit reports (boolean)
3940
required: false
4041
type: boolean
4142
default: false
43+
new-test-time:
44+
description: Configures the calculation of the test time for tests without JUnit reports (choice)
45+
required: false
46+
type: choice
47+
options:
48+
- zero
49+
- average
50+
- min
51+
- max
52+
default: average
4253
working-directory:
4354
description: The working directory. Defaults to the current directory (string)
4455
type: string
@@ -78,8 +89,8 @@ runs:
7889
if [ -n "${{ inputs.format }}" ]; then
7990
COMMAND="$COMMAND --format ${{ inputs.format }}"
8091
fi
81-
if [ -n "${{ inputs.average-time }}" ]; then
82-
COMMAND="$COMMAND --average-time"
92+
if [ -n "${{ inputs.new-test-time }}" ]; then
93+
COMMAND="$COMMAND --new-test-time ${{ inputs.new-test-time }}"
8394
fi
8495
if [ -n "${{ inputs.working-directory }}" ]; then
8596
COMMAND="$COMMAND --working-directory ${{ inputs.working-directory }}"

0 commit comments

Comments
 (0)