From bddbe16d93ec74a689fcc352977acc9bf87260b0 Mon Sep 17 00:00:00 2001 From: vsrs <62505555+vsrs@users.noreply.github.com> Date: Sat, 23 May 2020 16:04:14 +0300 Subject: [PATCH] Start xvfb manually on ubuntu --- .github/workflows/ci.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bf56ac6105..3ec6da1d11 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -97,7 +97,7 @@ jobs: typescript: name: TypeScript - runs-on: windows-latest + runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v2 @@ -116,8 +116,17 @@ 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 - run: npm run package --scripts-prepend-node-path working-directory: ./editors/code