report #707
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: Backend test | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test-backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Check for .only in tests | |
| run: | | |
| if grep -r "\.only" ./src/tests; then | |
| echo "Error: Found .only in test files!" | |
| exit 1 | |
| fi | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: '22' | |
| - name: Install dependencies for backend | |
| working-directory: backend | |
| run: npm ci | |
| - name: Run Jest tests with coverage (Backend) | |
| working-directory: backend | |
| run: npm test |