Docker versioning for Renovate pins, fail the gate on zero tests, refresh status line
CI / gate (push) Successful in 7s
CI / gate (push) Successful in 7s
This commit is contained in:
@@ -7,4 +7,10 @@ in_node() { docker run --rm -u "$(id -u):$(id -g)" -e HOME=/tmp -v "$PWD:/app" -
|
||||
|
||||
in_node npm ci
|
||||
in_node npm run typecheck
|
||||
in_node npm test
|
||||
|
||||
test_output=$(in_node npm test)
|
||||
printf '%s\n' "$test_output"
|
||||
if printf '%s' "$test_output" | grep -q 'ℹ tests 0'; then
|
||||
echo 'the gate ran zero tests — failing instead of a vacuous green'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user