about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvsrs <62505555+vsrs@users.noreply.github.com>2020-05-23 16:13:47 +0300
committerGitHub <noreply@github.com>2020-05-23 16:13:47 +0300
commit12ea4a2ba2e85ba39533ccc4197ea7204f7a0e17 (patch)
tree48c4a42a4ffa76f88ef8195d07544c88b93eb553
parentbddbe16d93ec74a689fcc352977acc9bf87260b0 (diff)
downloadrust-12ea4a2ba2e85ba39533ccc4197ea7204f7a0e17.tar.gz
rust-12ea4a2ba2e85ba39533ccc4197ea7204f7a0e17.zip
Try GabrielBB/xvfb to run vscode tests
-rw-r--r--.github/workflows/ci.yaml16
1 files changed, 5 insertions, 11 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 3ec6da1d11c..af71a3d54a6 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -116,17 +116,11 @@ jobs:
     - run: npm run lint
       working-directory: ./editors/code
 
-    - name: Start xvfb
-      run: |
-        sudo apt-get install xvfb
-        set -e
-        /usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
-        disown -ar
-      
-    - run: npm test
-      working-directory: ./editors/code
-      env:
-        DISPLAY: :10
+    - name: Run vscode tests
+      uses: GabrielBB/xvfb-action@v1.2
+      with:
+        run: npm test
+        working-directory: ./editors/code
 
     - run: npm run package --scripts-prepend-node-path
       working-directory: ./editors/code