Browse Source

add display

Konstantinos Kaloutas 2 years ago
parent
commit
1b787b279f
2 changed files with 5 additions and 5 deletions
  1. 3 3
      .github/workflows/build.yml
  2. 2 2
      .github/workflows/e2e.yml

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

@@ -191,17 +191,17 @@ jobs:
           export DISPLAY=:1.0
 
       - name: Start Fluxbox
-        run:  fluxbox >/dev/null 2>&1 &
+        run:  DISPLAY=:1.0 fluxbox >/dev/null 2>&1 &
 
       - name: Run Playwright test - 1/2
-        run: npx playwright test --reporter github --shard=1/2
+        run: DISPLAY=:1.0 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: npx playwright test --reporter github --shard=2/2
+        run: DISPLAY=:1.0 npx playwright test --reporter github --shard=2/2
         env:
           LOGSEQ_CI: true
           DEBUG: "pw:api"

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

@@ -146,10 +146,10 @@ jobs:
           export DISPLAY=:1.0
 
       - name: Start Fluxbox
-        run:  fluxbox >/dev/null 2>&1 &
+        run:  DISPLAY=:1.0 fluxbox >/dev/null 2>&1 &
 
       - name: Run Playwright test
-        run: npx playwright test --reporter github --shard=${{ matrix.shard }}/3
+        run: DISPLAY=:1.0 npx playwright test --reporter github --shard=${{ matrix.shard }}/3
         env:
           LOGSEQ_CI: true
           DEBUG: "pw:api"