Browse Source

fix: show logs on failing suite

Karol Sójko 1 năm trước cách đây
mục cha
commit
f5a57d886c
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      .github/workflows/common-e2e.yml

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

@@ -128,3 +128,9 @@ jobs:
 
     - name: Run E2E Test Suite
       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