Konstantinos Kaloutas il y a 2 ans
Parent
commit
57c8bfe6c5
2 fichiers modifiés avec 11 ajouts et 5 suppressions
  1. 6 3
      .github/workflows/build.yml
  2. 5 2
      .github/workflows/e2e.yml

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

@@ -185,20 +185,23 @@ jobs:
       - name: Install Fluxbox
       - name: Install Fluxbox
         run: sudo apt-get update && sudo apt-get install -y fluxbox
         run: sudo apt-get update && sudo apt-get install -y fluxbox
 
 
-      - name: Run Xvfb and Fluxbox
+      - name: Run XVFB
         run: |
         run: |
           Xvfb :1 -screen 0 1024x768x24 >/dev/null 2>&1 &
           Xvfb :1 -screen 0 1024x768x24 >/dev/null 2>&1 &
           export DISPLAY=:1.0
           export DISPLAY=:1.0
 
 
+      - name: Start Fluxbox
+        run:  fluxbox >/dev/null 2>&1 &
+
       - name: Run Playwright test - 1/2
       - name: Run Playwright test - 1/2
-        run: DISPLAY=:1.0 fluxbox >/dev/null 2>&1 && npx playwright test --reporter github --shard=1/2
+        run: npx playwright test --reporter github --shard=1/2
         env:
         env:
           LOGSEQ_CI: true
           LOGSEQ_CI: true
           DEBUG: "pw:api"
           DEBUG: "pw:api"
           RELEASE: true # skip dev only test
           RELEASE: true # skip dev only test
 
 
       - name: Run Playwright test - 2/2
       - name: Run Playwright test - 2/2
-        run: DISPLAY=:1.0 fluxbox >/dev/null 2>&1 && npx playwright test --reporter github --shard=2/2
+        run: npx playwright test --reporter github --shard=2/2
         env:
         env:
           LOGSEQ_CI: true
           LOGSEQ_CI: true
           DEBUG: "pw:api"
           DEBUG: "pw:api"

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

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