more db unit tests - best o luck !
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 4m24s

This commit is contained in:
2025-12-06 22:58:37 -08:00
parent 6f74de3f88
commit cea3586984
9 changed files with 600 additions and 16 deletions

View File

@@ -199,12 +199,24 @@ jobs:
APP_PATH="/var/www/flyer-crawler.projectium.com"
echo "--- Cleaning up test-generated flyer assets ---"
# Use find to delete files within the directories, but not the directories themselves.
# Target only the specific test files by name pattern.
find "$APP_PATH/flyer-images" -type f -name '*-test-flyer-image.*' -delete
find "$APP_PATH/flyer-images/icons" -type f -name '*-test-flyer-image.*' -delete
find "$APP_PATH/flyer-images/archive" -mindepth 1 -maxdepth 1 -type f -delete || echo "Archive directory not found, skipping."
# Target only the specific test files by name pattern. We now explicitly exclude the test report directory.
find "$APP_PATH/flyer-images" -type f -name '*-test-flyer-image.*' -delete || echo "No test flyer images to delete."
find "$APP_PATH/flyer-images/icons" -type f -name '*-test-flyer-image.*' -delete || echo "No test flyer icons to delete."
find "$APP_PATH/flyer-images/archive" -mindepth 1 -maxdepth 1 -type f -delete || echo "Archive directory is empty or not found, skipping."
echo "✅ Test artifacts cleared from asset directories."
- name: Deploy Coverage Report to Public URL
if: always()
run: |
TARGET_DIR="/var/www/flyer.torbonium.com/test"
echo "Deploying HTML coverage report to $TARGET_DIR..."
# Ensure the target directory exists and clear its contents before deploying.
mkdir -p "$TARGET_DIR"
rm -rf "$TARGET_DIR"/*
# Copy the entire contents of the generated coverage report directory.
cp -r .coverage/* "$TARGET_DIR/"
echo "✅ Coverage report deployed to https://flyer-crawler.projectium.com/test"
- name: Archive Code Coverage Report
# This action saves the generated HTML coverage report as a downloadable artifact.
uses: actions/upload-artifact@v3