From 5b7ffad924f21781b2334ed3a7bc915b378d16a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Wed, 1 Dec 2021 13:07:12 +0200 Subject: [PATCH] Use xvfb-run directly --- .github/workflows/ci.yaml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 319c56f96d7..e37608ebbf8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -114,6 +114,10 @@ jobs: with: node-version: 12.x + - name: Install xvfb + if: matrix.os == 'ubuntu-latest' + run: sudo apt-get install -y xvfb + - run: npm ci working-directory: ./editors/code @@ -124,13 +128,19 @@ jobs: - run: npm run lint working-directory: ./editors/code - - name: Run vscode tests - uses: GabrielBB/xvfb-action@v1.6 + - name: Run VS Code tests (Linux) + if: matrix.os == 'ubuntu-latest' env: VSCODE_CLI: 1 - with: - run: npm test - working-directory: ./editors/code + run: xvfb-run npm test + working-directory: ./editors/code + + - name: Run VS Code tests (Windows) + if: matrix.os == 'windows-latest' + env: + VSCODE_CLI: 1 + run: npm test + working-directory: ./editors/code - run: npm run pretest working-directory: ./editors/code