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:
@@ -3,7 +3,7 @@
|
||||
Lossless conversion between **Atlassian Document Format** (ADF), an extended markdown flavour, and
|
||||
an HTML dialect.
|
||||
|
||||
**Status: specification only, no code yet.** Plan: `todo.md`. Decisions: `AGENTS.md`.
|
||||
**Status: scaffold only, no conversion code yet.** Plan: `todo.md`. Decisions: `AGENTS.md`.
|
||||
|
||||
## What it is for
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
+8
-6
@@ -1,23 +1,25 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["config:recommended"],
|
||||
"automerge": true,
|
||||
"customManagers": [
|
||||
{
|
||||
"customType": "regex",
|
||||
"datasourceTemplate": "docker",
|
||||
"depNameTemplate": "node",
|
||||
"description": "Pin the node image ci.sh runs",
|
||||
"managerFilePatterns": ["ci.sh"],
|
||||
"matchStrings": ["node:(?<currentValue>[0-9][^\\s\"']*)"],
|
||||
"depNameTemplate": "node",
|
||||
"datasourceTemplate": "docker"
|
||||
"versioningTemplate": "docker"
|
||||
},
|
||||
{
|
||||
"customType": "regex",
|
||||
"datasourceTemplate": "docker",
|
||||
"depNameTemplate": "renovate/renovate",
|
||||
"description": "Pin the Renovate image the Renovate workflow runs",
|
||||
"managerFilePatterns": [".gitea/workflows/renovate.yml"],
|
||||
"matchStrings": ["renovate/renovate:(?<currentValue>[0-9][^\\s\"']*)"],
|
||||
"depNameTemplate": "renovate/renovate",
|
||||
"datasourceTemplate": "docker"
|
||||
"versioningTemplate": "docker"
|
||||
}
|
||||
]
|
||||
],
|
||||
"extends": ["config:recommended"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user