fix: set POSTGRES_DB in E2E compose for future CRUD tests #3
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: E2E Smoke Tests | |
| on: | |
| push: | |
| branches: [main, 'devin/**'] | |
| pull_request: | |
| branches: [main, 'devin/**'] | |
| jobs: | |
| e2e-smoke: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build and start services | |
| working-directory: src | |
| run: | | |
| docker compose -f docker-compose.e2e.yml up -d --build | |
| echo "Waiting for services to start..." | |
| sleep 30 | |
| - name: Run smoke tests | |
| run: | | |
| chmod +x tests/e2e/smoke-test.sh | |
| ./tests/e2e/smoke-test.sh | |
| - name: Show logs on failure | |
| if: failure() | |
| working-directory: src | |
| run: docker compose -f docker-compose.e2e.yml logs | |
| - name: Cleanup | |
| if: always() | |
| working-directory: src | |
| run: docker compose -f docker-compose.e2e.yml down -v |