Skip to content

AI-603 Backend Unit Tests #35

AI-603 Backend Unit Tests

AI-603 Backend Unit Tests #35

Workflow file for this run

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
- 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