AI-440 Alerts System #475
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: Backend Quality Assurance | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| branches: [main, develop] | |
| workflow_dispatch: | |
| jobs: | |
| test-and-lint: | |
| name: Backend Quality Assurance | |
| runs-on: ubuntu-latest | |
| outputs: | |
| environment: ${{ steps.env.outputs.environment }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Get Environment | |
| id: env | |
| uses: ./.github/actions/get-environment | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24' | |
| - name: Install dependencies | |
| run: npm install --ignore-scripts --no-package-lock | |
| - name: Build shared packages | |
| run: npm run build:packages | |
| # Prisma-generated types needed | |
| # ENV is just so this will run | |
| - name: Generate Prisma files | |
| working-directory: apps/backend-services | |
| run: npm run db:generate | |
| env: | |
| DATABASE_URL: "file:dev.db" | |
| - name: Lint | |
| working-directory: apps/backend-services | |
| run: npm run lint | |
| - name: Type Check | |
| working-directory: apps/backend-services | |
| run: npm run type-check | |
| - name: Test | |
| working-directory: apps/backend-services | |
| run: npm run test:cov |