From aafe8621d3144902eb80b9b7f1a9dbbd80000f1d Mon Sep 17 00:00:00 2001 From: g_it Date: Wed, 8 Apr 2026 01:15:48 +0200 Subject: [PATCH] Runner debug 24. --- .github/workflows/lint.yml | 51 ++++++++++++++++++++++++-------------- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6908fa2..b82423a 100755 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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