Skip to content

updade packages (#255) #10

updade packages (#255)

updade packages (#255) #10

Workflow file for this run

name: Run Tests (Backend/API)
on: [push]
jobs:
test:
name: Run Supertest tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: server
steps:
- uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: "20"
cache: "npm"
cache-dependency-path: server/package-lock.json
- name: Install dependencies
run: npm install
- name: Run Integration Tests
run: npm test
env:
NODE_ENV: test
SESSION_SECRET: ${{ secrets.SESSION_SECRET || 'test-secret' }}
# No real DB needed because tests use in-memory SQLite!