Skip to content

feat: add TechDocs configuration (mkdocs.yml) #5

feat: add TechDocs configuration (mkdocs.yml)

feat: add TechDocs configuration (mkdocs.yml) #5

Workflow file for this run

name: "🔧 CI"
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint-and-validate:
name: "✅ Lint & Validate"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Detect and Lint
run: |
# Terraform
if ls *.tf 1>/dev/null 2>&1 || find . -name "*.tf" -maxdepth 3 | grep -q .; then
echo "::group::Terraform Format Check"
terraform fmt -check -recursive -diff || true
echo "::endgroup::"
fi
# Python
if ls *.py 1>/dev/null 2>&1 || find . -name "*.py" -maxdepth 3 | grep -q .; then
echo "::group::Python Lint"
pip install ruff 2>/dev/null
ruff check . || true
echo "::endgroup::"
fi
# Shell scripts
if ls *.sh 1>/dev/null 2>&1 || find . -name "*.sh" -maxdepth 3 | grep -q .; then
echo "::group::Shell Lint"
sudo apt-get install -y shellcheck 2>/dev/null
find . -name "*.sh" -maxdepth 3 -exec shellcheck {} + || true
echo "::endgroup::"
fi
# Markdown
if ls *.md 1>/dev/null 2>&1; then
echo "Markdown files found — consider adding markdownlint"
fi
echo "✅ Linting complete"