From 00a0242e61e9ce9a520aa988ffda0d4e1f8839ff Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Wed, 14 May 2025 12:02:30 +0200 Subject: [PATCH] ci: redirect output of backend and testapp to log files for better debugging --- .github/workflows/wc-e2e-test.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wc-e2e-test.yaml b/.github/workflows/wc-e2e-test.yaml index cfa34ca..b400b4c 100644 --- a/.github/workflows/wc-e2e-test.yaml +++ b/.github/workflows/wc-e2e-test.yaml @@ -37,7 +37,7 @@ jobs: ./prepare.sh cd backend npm install - npm run start:prod & + npm run start:prod > ../../backend.log 2>&1 & - name: Wait for OpenVidu Meet to Start run: wait-on --timeout 30000 http://localhost:6080/meet/health - name: Start testapp @@ -46,11 +46,12 @@ jobs: cd testapp npm install npm run build - npm run start & + npm run start > ../testapp.log 2>&1 & - name: Wait for testapp to Start run: wait-on --timeout 30000 http://localhost:5080 - name: Run tests run: | + ls -al backend/public cd frontend/webcomponent # Install Playwright browsers mkdir -p /tmp/ms-playwright @@ -59,6 +60,15 @@ jobs: env: RUN_MODE: CI PLAYWRIGHT_BROWSERS_PATH: /tmp/ms-playwright + - name: Upload logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: service-logs + path: | + backend.log + testapp.log + retention-days: 7 - name: Clean up if: always() uses: ./.github/actions/cleanup