ci: redirect output of backend and testapp to log files for better debugging
This commit is contained in:
parent
a4404c8c59
commit
00a0242e61
14
.github/workflows/wc-e2e-test.yaml
vendored
14
.github/workflows/wc-e2e-test.yaml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user