Add isolated AI review stage
This commit is contained in:
+36
-4
@@ -12,6 +12,10 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# -------------------------
|
||||
# Project detection
|
||||
# -------------------------
|
||||
|
||||
- name: Detect project
|
||||
run: |
|
||||
echo "=== Project detection ==="
|
||||
@@ -24,6 +28,10 @@ jobs:
|
||||
echo "JS files: $JS_COUNT"
|
||||
echo "CSS files: $CSS_COUNT"
|
||||
|
||||
# -------------------------
|
||||
# PHP
|
||||
# -------------------------
|
||||
|
||||
- name: PHP syntax
|
||||
run: |
|
||||
if find . -type f -name "*.php" -not -path "./vendor/*" | grep -q .; then
|
||||
@@ -61,6 +69,10 @@ jobs:
|
||||
echo "PHPUnit not installed - skipping"
|
||||
fi
|
||||
|
||||
# -------------------------
|
||||
# JavaScript / frontend
|
||||
# -------------------------
|
||||
|
||||
- name: Node dependencies
|
||||
run: |
|
||||
if [ -f package-lock.json ]; then
|
||||
@@ -127,10 +139,7 @@ jobs:
|
||||
echo "No CSS lint script - skipping"
|
||||
fi
|
||||
|
||||
- name: Complete
|
||||
run: echo "Davidson CI completed successfully"
|
||||
|
||||
# -------------------------
|
||||
# -------------------------
|
||||
# Security
|
||||
# -------------------------
|
||||
|
||||
@@ -178,3 +187,26 @@ jobs:
|
||||
--scanners secret \
|
||||
--exit-code 1 \
|
||||
.
|
||||
|
||||
- name: Complete
|
||||
run: echo "Davidson CI completed successfully"
|
||||
|
||||
# -------------------------
|
||||
# AI review
|
||||
# -------------------------
|
||||
|
||||
ai-review:
|
||||
needs: quality
|
||||
runs-on: davidson-ai
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Davidson AI review
|
||||
env:
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
run: |
|
||||
opencode run \
|
||||
--agent davidson-review \
|
||||
"Perform a complete Davidson CI review of this repository. Do not modify anything."
|
||||
|
||||
Reference in New Issue
Block a user