From a67441905c9921c9972c44d3e26d164d1a1709a5 Mon Sep 17 00:00:00 2001 From: halfwhole Date: Mon, 23 Dec 2024 15:17:25 +0800 Subject: [PATCH] build: fix ci tests --- .github/workflows/ci.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8dce7b59..97d734a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,7 +74,7 @@ jobs: api_key: ${{ secrets.DD_API_KEY }} - run: npm run test env: - NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }} + NODE_OPTIONS: "--max-old-space-size=8192 -r ${{ env.DD_TRACE_PACKAGE }}" - name: Coveralls uses: coverallsapp/github-action@master with: diff --git a/package.json b/package.json index 35f4b3c0..11a5682a 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "server-dev": "ts-node-dev --poll --respawn --transpile-only --inspect=0.0.0.0 -r dotenv/config -- src/server/index.ts", "docker-dev": "concurrently \"npm run server-dev\" \"npm run client-dev\"", "dev": "docker compose -f docker-compose.yml up --build", - "test": "jest --collectCoverage", + "test": "jest", "test:ci": "jest --coverage && coveralls < coverage/lcov.info", "test:e2e": "testcafe chrome ./test/end-to-end --app \"npm run dev\" --app-init-delay 270000", "test:e2e-headless": "testcafe chrome:headless ./test/end-to-end --app \"npm run dev\" --app-init-delay 270000",