Skip to content

Commit 52df899

Browse files
committed
Improve structure of action files
1 parent 8d03a2c commit 52df899

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Split Tests Java
22
33
description: Splits a JUnit test suite for parallelization with equal time
4+
branding:
5+
icon: shuffle
6+
color: blue
47
inputs:
58
split-index:
69
description: Index of this instance executing the tests (integer)
@@ -30,7 +33,7 @@ inputs:
3033
options:
3134
- list
3235
- gradle
33-
default: 'list'
36+
default: list
3437
average-time:
3538
description: Use the average test time from tests with JUnit reports for tests without JUnit reports (boolean)
3639
required: false
@@ -88,6 +91,3 @@ runs:
8891
TESTS=$($COMMAND)
8992
echo "This runner will execute the following tests: $TESTS"
9093
echo "test-suite=${TESTS}" >> $GITHUB_OUTPUT
91-
branding:
92-
icon: shuffle
93-
color: blue

generate-split-index-json/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Generate Split Index JSON
22
33
description: Generates a split index JSON from a total number of splits
4+
branding:
5+
icon: list
6+
color: blue
47
inputs:
58
split-total:
69
description: Total number of instances executing the tests (integer)
@@ -23,6 +26,3 @@ runs:
2326
INDEX_LIST=$(seq 0 ${MAX_INDEX})
2427
INDEX_JSON=$(jq --null-input --compact-output '. |= [inputs]' <<< ${INDEX_LIST})
2528
echo "split-index-list=${INDEX_JSON}" >> "$GITHUB_OUTPUT"
26-
branding:
27-
icon: list
28-
color: blue

merge-junit-reports/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Merge JUnit reports
22
33
description: Merges the JUnit reports from the test split jobs and saves them in a Git branch
4+
branding:
5+
icon: archive
6+
color: blue
47
inputs:
58
git-branch:
69
description: The Git branch in this repository to store the JUnit reports in (string)
@@ -79,6 +82,3 @@ runs:
7982
message: 'Update JUnit reports'
8083
add: '*.xml'
8184
cwd: junit-reports
82-
branding:
83-
icon: archive
84-
color: blue

0 commit comments

Comments
 (0)