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