浏览代码

fix: add showing logs on docker error

Karol Sójko 1 年之前
父节点
当前提交
573ffbfcf3
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      .github/workflows/common-e2e.yml

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

@@ -52,6 +52,10 @@ jobs:
     - name: Run E2E Test Suite
     - name: Run E2E Test Suite
       run: yarn dlx mocha-headless-chrome --timeout 1200000 -f http://localhost:9001/mocha/test.html
       run: yarn dlx mocha-headless-chrome --timeout 1200000 -f http://localhost:9001/mocha/test.html
 
 
+    - name: Show logs on failure
+      if: ${{ failure() }}
+      run: docker compose -f docker-compose.ci.yml logs -n 500
+
   e2e-home-server:
   e2e-home-server:
     name: (Home Server) E2E Test Suite
     name: (Home Server) E2E Test Suite
     strategy:
     strategy: