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('应该能处理边界值', () => {