AI-604 Integration Tests #41
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] | |
| branches: [main, develop] | |
| paths: | |
| - '.github/workflows/backend-qa.yml' | |
| - 'apps/backend-services/src/**' | |
| workflow_dispatch: | |
| jobs: | |
| test-and-lint: | |
| name: Test and Lint | |
| runs-on: ubuntu-latest | |
| outputs: | |
| environment: ${{ steps.env.outputs.environment }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Get Environment | |
| id: env | |
| uses: ./.github/actions/get-environment | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| - name: Install dependencies | |
| run: npm ci | |
| # 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: Run tests | |
| working-directory: apps/backend-services | |
| run: npm run test:cov | |
| - name: Run Linter | |
| working-directory: apps/backend-services | |
| run: npm run lint |