浏览代码

fix: show logs on failing suite

Karol Sójko 1 年之前
父节点
当前提交
f5a57d886c
共有 1 个文件被更改,包括 6 次插入0 次删除
  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