This repository was archived by the owner on Jul 16, 2026. It is now read-only.
chore: repair CI workflow corruption and standardize triggers to master #11
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: Continuous Integration | ||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| branches: [ master ] | ||
| jobs: | ||
| frontend: | ||
| name: Frontend (Next.js) | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Use Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
| cache-dependency-path: './frontend/package-lock.json' | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| - name: Build Next.js | ||
| run: npm run build | ||
| env: | ||
| NEXT_TELEMETRY_DISABLED: 1 | ||
| backend: | ||
| name: Backend (Python) | ||
| 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 dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
| - name: Syntax check | ||
| run: python -m py_compile $(find . -name "*.py" | head -20) || true | ||
| security_scan: | ||
| name: Security Scan (Trivy) | ||
| needs: [frontend, backend] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Run Trivy vulnerability scanner | ||
| uses: aquasecurity/trivy-action@master | ||
| with: | ||
| scan-type: 'fs' | ||
| ignore-unfixed: true | ||
| format: 'table' | ||
| exit-code: '0' | ||
| severity: 'CRITICAL,HIGH' | ||