-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (41 loc) · 1.46 KB
/
ci.yml
File metadata and controls
51 lines (41 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true # Cancel outdated validation runs on new pushes
jobs:
documentation-structure:
runs-on: ubuntu-latest
timeout-minutes: 10
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
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install repomap dependencies
run: |
pip install uv
# Use --system flag since we're not in a virtual environment
uv pip install --system tree-sitter tree-sitter-python tree-sitter-javascript \
tree-sitter-typescript tree-sitter-go tree-sitter-bash
- name: Validate repomap is current
run: ./scripts/update-repomap.sh --check