File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -65,23 +65,27 @@ runs:
6565 id : split-tests-java
6666 shell : bash
6767 run : |
68- EXCLUDE_GLOB=" "
68+ COMMAND="java -jar split-tests-java.jar --split-index ${{ inputs.split-index }} --split-total ${{ inputs.split-total }} --glob ${{ inputs.glob }} "
6969 if [ -n "${{ inputs.exclude-glob }}" ]; then
70- EXCLUDE_GLOB=" --exclude-glob ' ${{ inputs.exclude-glob }}' "
70+ COMMAND="$COMMAND --exclude-glob ${{ inputs.exclude-glob }}"
7171 fi
72- JUNIT_GLOB=""
7372 if [ -n "${{ inputs.junit-glob }}" ]; then
74- JUNIT_GLOB="--junit-glob '${{ inputs.junit-glob }}'"
73+ COMMAND="$COMMAND --junit-glob ${{ inputs.junit-glob }}"
74+ fi
75+ if [ -n "${{ inputs.format }}" ]; then
76+ COMMAND="$COMMAND --format ${{ inputs.format }}"
7577 fi
76- AVERAGE_TIME=""
7778 if [ -n "${{ inputs.average-time }}" ]; then
78- AVERAGE_TIME="--average-time"
79+ COMMAND="$COMMAND --average-time"
80+ fi
81+ if [ -n "${{ inputs.working-directory }}"; then
82+ COMMAND="$COMMAND --working-directory ${{ inputs.working-directory }}"
7983 fi
80- DEBUG=""
8184 if [ -n "${{ inputs.debug }}" ]; then
82- DEBUG=" --debug"
85+ COMMAND="$COMMAND --debug"
8386 fi
84- TESTS=$(java -jar split-tests-java.jar --split-index ${{ inputs.split-index }} --split-total ${{ inputs.split-total }} --glob '${{ inputs.glob }}' ${EXCLUDE_GLOB} ${JUNIT_GLOB} --format ${{ inputs.format }} ${AVERAGE_TIME} ${DEBUG})
87+ echo "Command: $COMMAND"
88+ TESTS=$($COMMAND)
8589 echo "This runner will execute the following tests: $TESTS"
8690 echo "test-suite=${TESTS}" >> $GITHUB_OUTPUT
8791branding :
You can’t perform that action at this time.
0 commit comments