From 20af179a829dfd5b8b2b4f1fc4dc1abd93548e23 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Thu, 7 Oct 2021 20:01:33 +0800 Subject: [PATCH] [test] try to auto test Windows and MacOS --- .github/workflows/auto-test.yml | 3 ++- package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-test.yml b/.github/workflows/auto-test.yml index 83d887e40..467344dd2 100644 --- a/.github/workflows/auto-test.yml +++ b/.github/workflows/auto-test.yml @@ -11,10 +11,11 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: + os: [macos-latest, ubuntu-latest, ubuntu-latest] node-version: [14.x, 15.x, 16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ diff --git a/package.json b/package.json index 6698b522b..df8ac601f 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "start-server-dev": "cross-env NODE_ENV=development node server/server.js", "build": "vite build", "test": "node test/prepare-test-server.js && node server/server.js --port=3002 --data-dir=./data/test/ --test", + "test-with-build": "npm run build && npm test", "jest": "node test/prepare-jest.js && jest", "tsc": "tsc", "vite-preview-dist": "vite preview --host",