Repository navigation
feat: add selection-aware library item context menu #195
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: Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| backend: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: backend | |
| env: | |
| SUPABASE_URL: https://example.supabase.co | |
| SUPABASE_KEY: test-key | |
| OPENAI_API_KEY: test-key | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install backend deps | |
| run: uv sync --group dev | |
| - name: Run backend tests | |
| run: uv run pytest | |
| frontend: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: npm | |
| cache-dependency-path: "**/package-lock.json" | |
| - name: Install frontend deps | |
| run: npm ci | |
| - name: Run frontend tests | |
| run: npm run test:run | |
| - name: Build frontend | |
| run: npm run build | |
| e2e: | |
| runs-on: ubuntu-latest | |
| needs: [backend, frontend] | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: npm | |
| cache-dependency-path: "**/package-lock.json" | |
| - name: Install frontend deps | |
| run: npm ci | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps chromium | |
| - name: Run E2E smoke tests | |
| run: npm run test:e2e |