deploy moment aha
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m16s
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m16s
This commit is contained in:
@@ -63,6 +63,13 @@ jobs:
|
||||
run: npm run lint # Run the linter to check for code quality issues.
|
||||
continue-on-error: true # Allows the workflow to proceed even if linting fails.
|
||||
|
||||
- name: Stop Production Server Before Tests
|
||||
# This is a critical step to ensure a clean test environment.
|
||||
# It stops the currently running pm2 process, freeing up port 3001 so that the
|
||||
# integration test suite can launch its own, fresh server instance.
|
||||
# '|| true' ensures the workflow doesn't fail if the process isn't running.
|
||||
run: pm2 stop flyer-crawler-api || true
|
||||
|
||||
- name: Run All Tests and Generate Merged Coverage Report
|
||||
# This single step runs both unit and integration tests, then merges their
|
||||
# coverage data into a single report. It combines the environment variables
|
||||
|
||||
Reference in New Issue
Block a user