Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ inputs:
line-count:
description: Use line count to estimate test times (boolean)
required: false
working-directory:
description: Run inside the specified directory
required: false
outputs:
test-suite:
description: "A subset of tests, based on the the split index and split type"
Expand Down Expand Up @@ -57,6 +60,10 @@ runs:
if [ -n "${{ inputs.exclude-glob }}" ]; then
EXCLUDE_GLOB="-exclude-glob='${{ inputs.exclude-glob }}'"
fi

if [ -n "${{ inputs.working.directory }}" ]; then
cd "${{ inputs.working-directory }}"
fi

TESTS=$(./split_tests ${SPLIT_BY} -split-index=${{ inputs.split-index }} -split-total=${{ inputs.split-total }} -glob='${{ inputs.glob }}' ${EXCLUDE_GLOB})

Expand Down
Loading