docs: Add repomap workflow automation #72
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| documentation-structure: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check documentation structure | |
| run: | | |
| # Verify patterns documentation exists | |
| test -d docs/patterns || { echo "Error: docs/patterns/ missing"; exit 1; } | |
| test -f docs/README.md || { echo "Error: docs/README.md missing"; exit 1; } | |
| test -d docs/adr || { echo "Error: docs/adr/ missing"; exit 1; } | |
| echo "All required documentation files present" | |
| repomap-validation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install repomap dependencies | |
| run: | | |
| pip install tree-sitter tree-sitter-python tree-sitter-javascript \ | |
| tree-sitter-typescript tree-sitter-go tree-sitter-bash | |
| - name: Validate repomap is current | |
| run: | | |
| chmod +x scripts/update-repomap.sh | |
| ./scripts/update-repomap.sh --check |