ci: list moved files under their old path, run the tests for chart, compose and wiki changes

The changes job listed the diff with rename detection on, so a file moved
out of an area showed up only under its new path. Moving server code or a
chart template under docs/ turned every area off and ci-ok passed on a
change that removed source from the build. The diff now runs with
--no-renames, and a test reads the exact command out of test.yml and runs
it against a scratch repository with a move in it.

The code area also missed files the test suites read from disk outside
the packages. config-templates.test.ts pins docker-compose.yml and the
Helm chart to the code defaults, help.test.ts serves wiki pages and
images, and the client's help registry test checks its links against the
wiki headings. A chart, compose or wiki change now runs the tests, and a
wiki change also builds the image, which ships wiki/ as the in-app help.
Markdown is still ignored everywhere except under wiki/.
This commit is contained in:
Maurice
2026-10-08 12:04:32 +02:00
parent d88dc17e8e
commit 3f2b60b00b
3 changed files with 93 additions and 18 deletions
+3 -1
View File
@@ -99,7 +99,9 @@ jobs:
run: |
set -euo pipefail
list="$RUNNER_TEMP/changed-files.txt"
changed_between() { git -c core.quotePath=false diff --name-only "$1" "$2" > "$list"; }
# --no-renames lists a moved file under its old path too, so a move
# out of an area still runs that area.
changed_between() { git -c core.quotePath=false diff --no-renames --name-only "$1" "$2" > "$list"; }
case "$EVENT" in
pull_request)
changed_between HEAD^1 HEAD