unit tests fixin
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 41s
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 41s
This commit is contained in:
@@ -73,6 +73,17 @@ jobs:
|
||||
run: npm test # Run the test suite against the temporary test database.
|
||||
# also Run the test suite to ensure code correctness.
|
||||
|
||||
- name: Run Integration Tests
|
||||
# This step runs tests that require a live backend server.
|
||||
env:
|
||||
DB_HOST: ${{ secrets.DB_HOST }}
|
||||
DB_PORT: ${{ secrets.DB_PORT }}
|
||||
DB_USER: ${{ secrets.DB_USER }}
|
||||
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
|
||||
DB_DATABASE: "flyer-crawler-test"
|
||||
JWT_SECRET: "test-secret-for-ci" # Use a fixed secret for CI
|
||||
run: npm run test:integration
|
||||
|
||||
- name: Archive Code Coverage Report
|
||||
# This action saves the generated HTML coverage report as a downloadable artifact.
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
Reference in New Issue
Block a user