Update app.ts #175
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: Jest Tests | ||
| on: [push, pull_request] | ||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| services: | ||
| mongo: | ||
| image: mongo:latest | ||
| options: --health-cmd="exit 0" # Disable health check to avoid flakiness | ||
| ports: | ||
| - 27017:27017 | ||
| timeout: 300s # Increase timeout | ||
|
Check failure on line 15 in .github/workflows/test.yml
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v2 | ||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: '14' | ||
| - name: Install dependencies | ||
| run: npm install | ||
| - name: Run tests | ||
| run: npm test | ||
| retry: 3 # Add retry logic | ||