Runner debug 24.
All checks were successful
lint / runner / vale (push) Successful in 14s

This commit is contained in:
g_it 2026-04-08 01:15:48 +02:00
commit aafe8621d3
Signed by untrusted user who does not match committer: g_it
GPG key ID: A2B0A7C06A054627

View file

@ -49,39 +49,52 @@ jobs:
- name: Install and run Vale
run: |
# Install Vale (same binary the action uses)
wget -qO- https://github.com/errata-ai/vale/releases/download/v3.14.1/vale_3.14.1_Linux_64-bit.tar.gz | tar xz -C /tmp
export PATH="/tmp:$PATH"
echo "=== Where are we? ==="
# Ensure we are in the repository root
echo "=== PWD ==="
pwd
# Show .vale.ini so we can confirm patterns / BasedOnStyles
echo ""
echo "=== Content directory exists? ==="
ls -la /workspace/g_it/site/content/ 2>/dev/null || echo "NOT FOUND at absolute path"
ls -la content/ 2>/dev/null || echo "NOT FOUND at relative path"
echo "=== .vale.ini ==="
sed -n '1,200p' .vale.ini || echo "No .vale.ini found"
# Confirm markdown files exist
echo ""
echo "=== Find all markdown files ==="
find /workspace/g_it/site -name "*.md" -type f 2>/dev/null | head -20
echo "=== Markdown files (first 50) ==="
find content -name '*.md' -print | sed -n '1,50p' || true
# Sync packages into StylesPath (.vale)
echo ""
echo "=== Sync ==="
echo "=== vale sync ==="
vale sync
echo "=== Vale version & debug single file ==="
# List installed style/package files so we can confirm rules are present
echo ""
echo "=== .vale contents ==="
ls -la .vale || true
find .vale -type f -maxdepth 5 -print | sed -n '1,200p' || true
# Vale binary version & debug on one known file (shows which config and styles were loaded)
echo ""
echo "=== vale --version & debug ==="
vale --version
vale --debug /workspace/g_it/site/content/test.md || true
echo "=== Vale line output for one file ==="
vale --output=line /workspace/g_it/site/content/index.md || true
echo "=== Vale JSON output for one file ==="
vale --output=JSON /workspace/g_it/site/content/index.md || true
vale --debug content/index.md || true
# Lint each markdown file individually and print JSON + line output so nothing is filtered
echo ""
echo "=== Run Vale with explicit path ==="
vale --output=line /workspace/g_it/site/content/ || true
echo "=== Linting files one-by-one (JSON then line) ==="
find content -name '*.md' -print0 | xargs -0 -n1 -I{} sh -c '
echo "----- {} -----";
vale --output=JSON "{}" || true;
vale --output=line "{}" || true;
'
# Also run a recursive lint in case you prefer aggregated output
echo ""
echo "=== Or try with glob pattern ==="
vale --output=line "/workspace/g_it/site/content/**/*.md" 2>/dev/null || vale --output=line "content/**/*.md" 2>/dev/null || true
echo "=== Recursive run (all content) ==="
vale --output=JSON content/ || true
vale --output=line content/ || true