docs: Refresh all core documentation with Goal 31 features and AI-aud… #109
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: .NET CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| name: Build & Test | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore tools | |
| run: dotnet tool restore | |
| working-directory: src/IncriElemental.Desktop | |
| - name: Setup Font for MGCB | |
| run: python scripts/download_font.py | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build IncriElemental.slnx --no-restore | |
| - name: Run Health & Tests | |
| run: python scripts/check_health.py | |
| - name: Upload Build Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-output | |
| path: | | |
| src/IncriElemental.Core/bin/ | |
| src/IncriElemental.Desktop/bin/ | |
| tests/IncriElemental.Tests/bin/ | |
| - name: Upload Coverage Report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: "TestResults/**/coverage.cobertura.xml" | |
| - name: Upload Health Data | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: health-data | |
| path: shields_data/ | |
| visual_review: | |
| name: Visual Regression Check | |
| needs: build | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Download Build Artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: build-output | |
| path: . | |
| - name: Install Python Dependencies | |
| run: pip install Pillow numpy | |
| - name: Run Visual Review | |
| run: python scripts/agentic_review.py | |
| continue-on-error: true # Visual review might fail on headless CI, don't block the whole CI | |
| - name: Upload Review Artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: visual-review-results | |
| path: review/ | |
| shields: | |
| name: Deploy Shields Data | |
| needs: build | |
| if: github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download Health Data | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: health-data | |
| path: shields_deploy/ | |
| - name: Deploy to Shields Branch | |
| run: | | |
| git config --global user.name "Agent Gemini" | |
| git config --global user.email "agent-gemini@example.com" | |
| # Move files outside the git context so they aren't deleted by git rm | |
| mv shields_deploy ../shields_temp | |
| # Fetch and switch to shields branch, or create it | |
| git fetch origin shields || true | |
| if git show-ref --verify --quiet refs/remotes/origin/shields; then | |
| git checkout -f shields | |
| else | |
| git checkout --orphan shields | |
| fi | |
| # Clean everything and restore the new files | |
| git rm -rf . --ignore-unmatch | |
| cp -r ../shields_temp/* . | |
| git add . | |
| if ! git diff --staged --quiet; then | |
| git commit -m "Update health shields data" | |
| git push origin shields --force | |
| else | |
| echo "No changes to commit to shields branch" | |
| fi |