Skip to content

Commit 9c04fbb

Browse files
authored
build: run affected tests in sub-directories
PR-URL: #5358 Closes: #2096 Closes: stdlib-js/metr-issue-tracker#4 Ref: #1680 Reviewed-by: Athan Reines <[email protected]>
1 parent 417e653 commit 9c04fbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/scripts/run_affected_tests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ main() {
151151
done
152152

153153
# Find all test files in package directories:
154-
files=$(find ${directories} -maxdepth 2 -wholename '**/test/test*.js' | grep -v '/fixtures/' | sort -u | tr '\n' ' ') || true
154+
files=$(find ${directories} -maxdepth 3 \( -wholename '**/test/test*.js' -or -wholename '**/test/**/test*.js' \) | grep -v '/fixtures/' | sort -u | tr '\n' ' ') || true
155155

156156
# Exclude files residing in test fixtures directories:
157157
files=$(echo "${files}" | grep -v '/fixtures/') || true

0 commit comments

Comments
 (0)