From af61067f08c763b224744e70c4300a98576fe3d1 Mon Sep 17 00:00:00 2001 From: YHH <359807859@qq.com> Date: Fri, 18 Jul 2025 15:15:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dci=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 9 ++------- tests/ECS/Utils/IdentifierPool.test.ts | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd39cb36..eba8b9f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,18 +10,14 @@ jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x, 20.x, 22.x] - steps: - name: Checkout code uses: actions/checkout@v4 - - name: Setup Node.js ${{ matrix.node-version }} + - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: '20.x' cache: 'npm' - name: Install dependencies @@ -31,7 +27,6 @@ jobs: run: npm run test:ci - name: Upload coverage to Codecov - if: matrix.node-version == '20.x' uses: codecov/codecov-action@v4 with: file: ./coverage/lcov.info diff --git a/tests/ECS/Utils/IdentifierPool.test.ts b/tests/ECS/Utils/IdentifierPool.test.ts index 92df4964..07c1fc2f 100644 --- a/tests/ECS/Utils/IdentifierPool.test.ts +++ b/tests/ECS/Utils/IdentifierPool.test.ts @@ -209,7 +209,7 @@ describe('IdentifierPool 世代式ID池测试', () => { expect(() => { pool.checkOut(); - }).toThrow('实体索引已达到硬件限制'); + }).toThrow('实体索引已达到框架设计限制'); }); test('应该能处理边界值', () => {