feat(sync): synchronize local frontend/backend changes and documentation #65
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: Agent ThinkTank CI | |
| on: | |
| push: | |
| branches: ["main", "master"] | |
| pull_request: | |
| branches: ["main", "master"] | |
| workflow_dispatch: | |
| jobs: | |
| # ------------------------------------------------------------------ | |
| # JOB 1: Frontend (SvelteKit) - Build & Type Check | |
| # ------------------------------------------------------------------ | |
| frontend-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js 20 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install Frontend Dependencies | |
| working-directory: ./frontend | |
| run: npm ci | |
| - name: Svelte Check (Type Safety) | |
| working-directory: ./frontend | |
| run: npm run check | |
| - name: Build Frontend | |
| working-directory: ./frontend | |
| run: npm run build | |
| env: | |
| # Define build-time env vars (fallback to localhost for CI if not set) | |
| VITE_API_URL: ${{ secrets.VITE_API_URL || 'http://localhost:3000' }} | |
| # ------------------------------------------------------------------ | |
| # JOB 2: Backend (Node.js) - Installation Verification | |
| # ------------------------------------------------------------------ | |
| backend-node-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js 20 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: backend/package-lock.json | |
| - name: Install Backend Dependencies | |
| working-directory: ./backend | |
| run: npm ci | |
| - name: Verify Server Syntax | |
| working-directory: ./backend | |
| run: node --check src/server.js | |
| # ------------------------------------------------------------------ | |
| # JOB 3: AI Researcher (Python) - Environment Check | |
| # ------------------------------------------------------------------ | |
| ai-researcher-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - name: Setup Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: "pip" | |
| cache-dependency-path: "backend/ai-researcher/requirements.txt" | |
| - name: Install Python Dependencies | |
| working-directory: ./backend/ai-researcher | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Verify Python Syntax | |
| working-directory: ./backend/ai-researcher | |
| run: python -m compileall . |