From 5b1c3100a5775114074f6e24c439770a729f2daa Mon Sep 17 00:00:00 2001 From: jhen Date: Tue, 18 Jul 2023 11:14:46 +0800 Subject: [PATCH] Update CI --- .github/workflows/main.yml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dff69c98..88322c45 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,45 +3,44 @@ name: CI on: [push, pull_request] jobs: - build-test-macos: - runs-on: macOS-latest + build-test-linux: + runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: - node-version: 10.x - - name: CI + node-version: 18.x + - name: Setup + run: sudo apt-get install -y libgbm-dev + - name: Test run: | yarn cd npm-package && yarn && cd .. yarn test yarn build - yarn test-e2e - build-test-linux: - runs-on: ubuntu-latest + xvfb-run --auto-servernum yarn test-e2e + build-test-macos: + runs-on: macOS-latest steps: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: - node-version: 10.x - - name: CI + node-version: 18.x + - name: Test run: | - export DISPLAY=:99.0 - Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & - npm i -g xvfb-maybe yarn cd npm-package && yarn && cd .. yarn test yarn build - xvfb-maybe yarn test-e2e + yarn test-e2e build-test-windows: runs-on: windows-2019 steps: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: - node-version: 10.x - - name: CI + node-version: 18.x + - name: Test shell: bash run: | yarn