more ts and break apart big ass files
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Has been cancelled

This commit is contained in:
2025-11-21 01:16:08 -08:00
parent 4f87a3ee84
commit e733eb1d60
3 changed files with 18 additions and 9 deletions

View File

@@ -58,8 +58,10 @@ jobs:
- name: Lint TypeScript Code
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: Setup Test Database
id: setup_test_db # Add an ID to reference this step's outcome later.
run: |
echo "--- Creating test database and user ---"
# Execute the setup script as the 'postgres' superuser.
@@ -81,7 +83,8 @@ jobs:
- name: Teardown Test Database
# This step runs regardless of whether the tests passed or failed.
if: always()
# It will only execute if the 'setup_test_db' step was successful, preventing errors if setup failed.
if: always() && steps.setup_test_db.outcome == 'success'
run: |
echo "--- Dropping test database and user ---"
sudo -u postgres psql -f sql/test_teardown.sql