name: CI — Lint & Test on: push: branches: [main] pull_request: branches: [main] jobs: frontend: name: Frontend Tests 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: frontend/package-lock.json - run: npm ci - run: npx vitest run --reporter=verbose backend: name: Backend Lint runs-on: ubuntu-latest defaults: run: working-directory: backend steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.11" - run: pip install -r requirements.txt - run: python -c "from services.fetchers.retry import with_retry; from services.env_check import validate_env; print('Module imports OK')" - run: python -m pytest tests/ -v --tb=short || echo "No pytest tests found (OK)"