more ts and break apart big ass files
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Has been cancelled
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user