updade packages (#255) #10
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: 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! |