Skip to content

Commit a929e61

Browse files
committed
read
1 parent 14ebf6b commit a929e61

1 file changed

Lines changed: 0 additions & 44 deletions

File tree

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +0,0 @@
1-
name: Drizzle Schema Analysis Report
2-
3-
on:
4-
pull_request:
5-
paths:
6-
- '**/*.ts'
7-
- '**/*.tsx'
8-
workflow_dispatch: # Allows manual triggering from the Actions tab
9-
10-
jobs:
11-
analyze-schema:
12-
runs-on: ubuntu-latest
13-
name: Generate Schema Report
14-
15-
steps:
16-
- name: Checkout Repository
17-
uses: actions/checkout@v4
18-
19-
- name: Setup Python
20-
uses: actions/setup-python@v5
21-
with:
22-
python-version: '3.12'
23-
24-
- name: Ensure Script is Executable
25-
run: chmod +x scripts/db/audit_drizzle_schema.py
26-
27-
- name: Run Schema Analysis
28-
run: python scripts/db/audit_drizzle_schema.py --output drizzle-schema-report.md
29-
30-
- name: Upload Report Artifact
31-
uses: actions/upload-artifact@v4
32-
with:
33-
name: drizzle-schema-report
34-
path: drizzle-schema-report.md
35-
retention-days: 14
36-
37-
# Optional: Fail the PR if unmapped/orphaned tables (AI slop) are detected.
38-
# Remove or comment out if you just want the report without blocking the PR.
39-
- name: Check for AI Slop
40-
run: |
41-
if grep -q "### Unmapped / Orphaned Schema Tables" drizzle-schema-report.md; then
42-
echo "::error::Orphaned Drizzle tables detected! Please review the schema for AI slop."
43-
exit 1
44-
fi

0 commit comments

Comments
 (0)