Skip to content

Commit 1fcaaba

Browse files
committed
test: add script to skip the gc tests
1 parent 9aa14dc commit 1fcaaba

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,14 @@ jobs:
9898
with:
9999
path: ./prebuilds
100100

101-
- name: Test
102-
uses: nick-invision/retry@v2
103-
with:
104-
timeout_minutes: 4
105-
max_attempts: 3
106-
command: npm run test
107-
108101
- name: Lint
109102
if: contains(matrix.os, 'ubuntu')
110103
run: npm run lint-test
104+
105+
- name: Test (Debug)
106+
run: |
107+
npm run test.nogc
108+
109+
- name: Tests + GC Tests (Release)
110+
run: |
111+
npm run test

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484
"build.native.debug": "cross-env CMAKE_BUILD_TYPE=Debug node-gyp configure --debug && cross-env CMAKE_BUILD_TYPE=Debug node-gyp build --debug",
8585
"build": "run-p build.js build.native",
8686
"build.debug": "run-p build.js build.native.debug",
87-
"test": "run-s build.debug && mocha",
87+
"test": "run-s build && mocha",
88+
"test.nogc": "run-s build.debug && cross-env SKIP_GC_TESTS=true mocha",
8889
"lint.clang-format": "clang-format -i -style=file src/*.{cc,h} src/*/*.h",
8990
"lint-test.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
9091
"lint.eslint": "run-s lint-test.eslint -- --fix",

0 commit comments

Comments
 (0)