mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-26 14:09:45 -08:00
[test] try to auto test Windows and MacOS
This commit is contained in:
parent
3c60800eab
commit
20af179a82
3
.github/workflows/auto-test.yml
vendored
3
.github/workflows/auto-test.yml
vendored
|
@ -11,10 +11,11 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
os: [macos-latest, ubuntu-latest, ubuntu-latest]
|
||||||
node-version: [14.x, 15.x, 16.x]
|
node-version: [14.x, 15.x, 16.x]
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
"start-server-dev": "cross-env NODE_ENV=development node server/server.js",
|
"start-server-dev": "cross-env NODE_ENV=development node server/server.js",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"test": "node test/prepare-test-server.js && node server/server.js --port=3002 --data-dir=./data/test/ --test",
|
"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",
|
"jest": "node test/prepare-jest.js && jest",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
"vite-preview-dist": "vite preview --host",
|
"vite-preview-dist": "vite preview --host",
|
||||||
|
|
Loading…
Reference in a new issue