Skip to content

Commit

Permalink
Exit early if no directories to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Jan 18, 2023
1 parent 936cc11 commit 176f216
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/scripts/run_affected_tests
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ main() {
fi
done

if [[ -z "${directories}" && -z "${required_by}" ]]; then
echo 'No directories to test.' >&2
cleanup
print_success
exit 0
fi

# Concatenate the list of changed package directories and package directories which `require()` one of the changed packages:
directories="${directories} ${required_by}"

Expand Down

0 comments on commit 176f216

Please sign in to comment.