42 lines
929 B
YAML
42 lines
929 B
YAML
name: Test Suite
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, develop ]
|
|
pull_request:
|
|
branches: [ main, develop ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [24.15.0]
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies (backend)
|
|
working-directory: ./backend
|
|
run: npm ci
|
|
|
|
- name: Typecheck backend
|
|
working-directory: ./backend
|
|
run: npm run typecheck
|
|
|
|
- name: Build NestJS app
|
|
working-directory: ./backend
|
|
run: npm run build
|
|
|
|
- name: Dependency audit (high+critical)
|
|
working-directory: ./backend
|
|
run: npm run audit:high
|