Skip to content

One self-hosted app for your shows, movies and music.

839 B
Raw Blame
#!/bin/sh
# Word check over plans\ and the screens (3.6.6), run beside the repo.
# CI cannot see the plans folder (it is not in the repo), so this runs the
# same check locally with the plans folder required: the web app source,
# docs, README, openapi.json and ../plans must use no banned word
# lists under Avoid. Exit 0 clean, non-zero with file:line for each hit.
set -e
cd "$(dirname "$0")/../../.."
HOLYARRS_REQUIRE_PLANS=1 go test -count=1 -run 'TestNoBannedWords$' -v ./app/backend/internal/api ./app/backend/internal/core/webserver | grep -E '^(=== RUN|--- |ok|FAIL|PASS)|uses "' || true
HOLYARRS_REQUIRE_PLANS=1 go test -count=1 -run 'TestNoBannedWords$' ./app/backend/internal/api ./app/backend/internal/core/webserver >/dev/null
(cd app/frontend && node scripts/check-words.mjs)
echo "word check over plans and screens: clean"