deploy moment aha
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m16s

This commit is contained in:
2025-11-23 13:54:15 -08:00
parent 51a71ccc78
commit 9801e62899
4 changed files with 20 additions and 23 deletions

View File

@@ -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