ci: add automated test workflow
Test Suite / test (24.x) (push) Has been cancelled

This commit is contained in:
Nils-Johan Gynther
2026-05-03 19:55:09 +02:00
parent c8bfde346c
commit 7bc785e8e0
+42
View File
@@ -0,0 +1,42 @@
name: Test Suite
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [24.x]
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 install
- name: Generate Prisma Client
working-directory: ./backend
run: npm run prisma:generate
- name: Run tests (backend)
working-directory: ./backend
run: npm test
- name: Build NestJS app
working-directory: ./backend
run: npm run build
continue-on-error: true