A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix: upgrade Node to 22 and add test job to CI
esengine70b3c837d53e
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 3d2315b64..7e37a72f6 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -56,7 +56,11 @@ jobs:- name: Setup Node.jsuses: actions/setup-node@v4with:- node-version: '20'+ node-version: '22'++ - uses: pnpm/action-setup@v4+ with:+ version: 9- name: Setup Emscriptenuses: mymindstorm/setup-emsdk@v14@@ -75,10 +79,10 @@ jobs:- name: Buildrun: cmake --build build_web- - name: Install build-tools dependencies- run: npm install+ - name: Install dependencies+ run: pnpm install- - name: Build SDK and generate manifest+ - name: Build SDKrun: node build-tools/cli.js build -t all --manifest --no-sync- name: Track bundle sizes@@ -107,3 +111,30 @@ jobs:body: comment});+ test:+ name: Tests (SDK + Editor)+ runs-on: ubuntu-latest++ steps:+ - uses: actions/checkout@v4++ - name: Setup Node.js+ uses: actions/setup-node@v4+ with:+ node-version: '22'++ - uses: pnpm/action-setup@v4+ with:+ version: 9++ - name: Install dependencies+ run: pnpm install++ - name: Run SDK tests+ run: pnpm --filter esengine test++ - name: Build SDK+ run: pnpm --filter esengine build++ - name: Run Editor tests+ run: pnpm --filter @esengine/editor testdiff --git a/editor/package.json b/editor/package.jsonindex 931238a0f..ba5d4bf78 100644--- a/editor/package.json+++ b/editor/package.json@@ -19,7 +19,7 @@"build": "rollup -c","watch": "rollup -c -w","clean": "rimraf dist",- "test": "vitest",+ "test": "vitest run","test:ui": "vitest --ui","test:coverage": "vitest --coverage"},