Konstantinos Kaloutas 2 лет назад
Родитель
Сommit
b24e173a12
2 измененных файлов с 4 добавлено и 6 удалено
  1. 2 3
      .github/workflows/build.yml
  2. 2 3
      .github/workflows/e2e.yml

+ 2 - 3
.github/workflows/build.yml

@@ -189,17 +189,16 @@ jobs:
         run: |
           Xvfb :1 -screen 0 1024x768x24 >/dev/null 2>&1 &
           export DISPLAY=:1.0
-          fluxbox >/dev/null 2>&1
 
       - name: Run Playwright test - 1/2
-        run: DISPLAY=:1.0 npx playwright test --reporter github --shard=1/2
+        run: DISPLAY=:1.0 fluxbox >/dev/null 2>&1 && npx playwright test --reporter github --shard=1/2
         env:
           LOGSEQ_CI: true
           DEBUG: "pw:api"
           RELEASE: true # skip dev only test
 
       - name: Run Playwright test - 2/2
-        run: DISPLAY=:1.0 npx playwright test --reporter github --shard=2/2
+        run: DISPLAY=:1.0 fluxbox >/dev/null 2>&1 && npx playwright test --reporter github --shard=2/2
         env:
           LOGSEQ_CI: true
           DEBUG: "pw:api"

+ 2 - 3
.github/workflows/e2e.yml

@@ -140,14 +140,13 @@ jobs:
       - name: Install Fluxbox
         run: sudo apt-get update && sudo apt-get install -y fluxbox
 
-      - name: Run Xvfb and Fluxbox
+      - name: Run Xvfb
         run: |
           Xvfb :1 -screen 0 1024x768x24 >/dev/null 2>&1 &
           export DISPLAY=:1.0
-          fluxbox >/dev/null 2>&1
 
       - name: Run Playwright test
-        run: DISPLAY=:1.0 npx playwright test --reporter github --shard=${{ matrix.shard }}/3
+        run: DISPLAY=:1.0 fluxbox >/dev/null 2>&1 && npx playwright test --reporter github --shard=${{ matrix.shard }}/3
         env:
           LOGSEQ_CI: true
           DEBUG: "pw:api"