From d975af8bec7528e9ba8946a63454ce923218b79a Mon Sep 17 00:00:00 2001 From: resonic-user Date: Mon, 16 Jun 2025 11:03:20 +0000 Subject: [PATCH] v --- .github/workflows/cache-verify.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cache-verify.yml b/.github/workflows/cache-verify.yml index 7534825bd..30c9f52c7 100644 --- a/.github/workflows/cache-verify.yml +++ b/.github/workflows/cache-verify.yml @@ -55,6 +55,10 @@ jobs: docker load < /tmp/backend-image/backend.tar docker load < /tmp/webapp-image/webapp.tar docker load < /tmp/neo4j-image/neo4j.tar + - name: Setup .env files + run: | + cp webapp/.env.template webapp/.env || touch webapp/.env + cp backend/.env.test_e2e backend/.env || touch backend/.env - name: Start system run: | docker compose -f docker-compose.yml -f docker-compose.test.yml up --detach @@ -76,16 +80,14 @@ jobs: run: | echo "### ✅ CI Cache Verification Summary" >> $GITHUB_STEP_SUMMARY echo "- Cache: ${{ needs.verify-cache.result }}" >> $GITHUB_STEP_SUMMARY - echo "- Backend: ${{ needs.verify-backend.result }}" >> $GITHUB_STEP_SUMMARY - echo "- Webapp: ${{ needs.verify-webapp.result }}" >> $GITHUB_STEP_SUMMARY - if [[ '${{ needs.verify-cache.result }}' != 'success' || '${{ needs.verify-backend.result }}' != 'success' || '${{ needs.verify-webapp.result }}' != 'success' ]]; then - echo " - ❌ One or more checks failed." >> $GITHUB_STEP_SUMMARY - exit 1 - else - echo " - ✅ All checks passed successfully!" >> $GITHUB_STEP_SUMMARY - fi + echo "- Environment: ${{ needs.consolidate-environment.result }}" >> $GITHUB_STEP_SUMMARY + if [[ '${{ needs.verify-cache.result }}' != 'success' || '${{ needs.consolidate-environment.result }}' != 'success' ]]; then + echo "\n❌ One or more checks failed." >> $GITHUB_STEP_SUMMARY + exit 1 + else + echo "\n✅ All checks passed successfully!" >> $GITHUB_STEP_SUMMARY + fi + verify-cache: runs-on: ubuntu-latest steps: