From 3be56a483cb32e7c908952d3576cde8ff98fa0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E9=9D=99=E5=87=A1?= <30424139+wtto00@users.noreply.github.com> Date: Fri, 22 Sep 2023 02:57:54 +0800 Subject: [PATCH] ci: test on ubuntu --- .github/workflows/test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 45e914f..045582a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,8 +29,9 @@ jobs: - name: Run Lint run: npm run lint + # runs-on: macos-latest Test: - runs-on: macos-latest + runs-on: ubuntu-latest needs: Lint strategy: matrix: @@ -65,5 +66,8 @@ jobs: - name: Setup Android SDK uses: amyu/setup-android@v3.1 + - name: Start Xvfb + run: Xvfb :99 & + - name: Run tests 👩🏽‍💻 - run: npm run test + run: DISPLAY=:99 npm run test