Compare commits

...
Author SHA1 Message Date
Patrick szymkowiak 8678bd8e32 fix: remove version check from validate-docs CI (#476)
Release-please bumps Cargo.toml but not docs, causing the version
grep to fail after every release. The check adds no value since docs
don't need to track the exact patch version.

Signed-off-by: Patrick szymkowiak <patrick.szymkowiak@innovtech.eu>
2026-03-12 18:53:20 +01:00
2 changed files with 1 additions and 18 deletions

No files matched your search

-1
View File
@@ -4,7 +4,6 @@ on:
pull_request:
paths:
- 'src/**/*.rs'
- 'Cargo.toml'
- '**.md'
- '.claude/hooks/*.sh'
push:
+1 -17
View File
@@ -3,23 +3,7 @@ set -e
echo "🔍 Validating RTK documentation consistency..."
# 1. Version Cargo.toml == tous les fichiers doc
CARGO_VERSION=$(grep '^version = ' Cargo.toml | cut -d'"' -f2)
echo "📦 Cargo.toml version: $CARGO_VERSION"
for file in README.md CLAUDE.md ARCHITECTURE.md; do
if [ ! -f "$file" ]; then
echo "⚠️ $file not found, skipping"
continue
fi
if ! grep -q "$CARGO_VERSION" "$file"; then
echo "❌ $file ne mentionne pas version $CARGO_VERSION"
exit 1
fi
done
echo "✅ Version consistency: all docs mention $CARGO_VERSION"
# 2. Nombre de modules cohérent
# 1. Nombre de modules cohérent
MAIN_MODULES=$(grep -c '^mod ' src/main.rs)
echo "📊 Module count in main.rs: $MAIN_MODULES"