fix(ci): prevent grep exit code 1 from failing empty dir check

- Add || true to grep -v that filters empty lines from VALID_PATHS
- GitHub Actions bash uses set -eo pipefail, so grep returning 1 (no
  matches) killed the script before reaching the graceful exit 0
This commit is contained in:
Alan Buscaglia
2026-03-12 11:33:33 +01:00
parent 37abe6b47e
commit 173659ae0b
+1 -1
View File
@@ -242,7 +242,7 @@ jobs:
echo "Skipping empty test directory: $p"
fi
done <<< "$TEST_PATHS"
VALID_PATHS=$(echo "$VALID_PATHS" | grep -v '^$')
VALID_PATHS=$(echo "$VALID_PATHS" | grep -v '^$' || true)
if [[ -z "$VALID_PATHS" ]]; then
echo "No test files found in any resolved paths — skipping E2E"
exit 0