Browse Source

fix: outputing logs on e2e

Karol Sójko 1 year ago
parent
commit
913ced70b0
1 changed files with 6 additions and 5 deletions
  1. 6 5
      .github/workflows/common-e2e.yml

+ 6 - 5
.github/workflows/common-e2e.yml

@@ -118,8 +118,11 @@ jobs:
         echo "FILES_SERVER_URL=http://localhost:3123" >> packages/home-server/.env
         echo "E2E_TESTING=true" >> packages/home-server/.env
 
+    - name: Create logs directory
+      run: mkdir logs
+
     - name: Run Server
-      run: nohup yarn workspace @standardnotes/home-server start &
+      run: nohup yarn workspace @standardnotes/home-server start > logs/output.log &
       env:
         PORT: 3123
 
@@ -130,7 +133,5 @@ jobs:
       run: yarn dlx mocha-headless-chrome --timeout 1200000 -f http://localhost:9001/mocha/test.html
 
     - name: Show logs on failure
-      if: ${{ failure()}}
-      run: |
-        tail -n 100 logs/*.err
-        tail -n 100 logs/*.log
+      if: ${{ failure() }}
+      run: tail -n 500 logs/output.log