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
|
./prepare.sh
|
||||||
cd backend
|
cd backend
|
||||||
npm install
|
npm install
|
||||||
npm run start:prod &
|
npm run start:prod > ../../backend.log 2>&1 &
|
||||||
- name: Wait for OpenVidu Meet to Start
|
- name: Wait for OpenVidu Meet to Start
|
||||||
run: wait-on --timeout 30000 http://localhost:6080/meet/health
|
run: wait-on --timeout 30000 http://localhost:6080/meet/health
|
||||||
- name: Start testapp
|
- name: Start testapp
|
||||||
@ -46,11 +46,12 @@ jobs:
|
|||||||
cd testapp
|
cd testapp
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
npm run start &
|
npm run start > ../testapp.log 2>&1 &
|
||||||
- name: Wait for testapp to Start
|
- name: Wait for testapp to Start
|
||||||
run: wait-on --timeout 30000 http://localhost:5080
|
run: wait-on --timeout 30000 http://localhost:5080
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
|
ls -al backend/public
|
||||||
cd frontend/webcomponent
|
cd frontend/webcomponent
|
||||||
# Install Playwright browsers
|
# Install Playwright browsers
|
||||||
mkdir -p /tmp/ms-playwright
|
mkdir -p /tmp/ms-playwright
|
||||||
@ -59,6 +60,15 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RUN_MODE: CI
|
RUN_MODE: CI
|
||||||
PLAYWRIGHT_BROWSERS_PATH: /tmp/ms-playwright
|
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
|
- name: Clean up
|
||||||
if: always()
|
if: always()
|
||||||
uses: ./.github/actions/cleanup
|
uses: ./.github/actions/cleanup
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user