Skip to content

Commit 8fbcddc

Browse files
committed
ci: run vm-modules test on Node.js v14 only
1 parent 47fea20 commit 8fbcddc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ jobs:
2222
run: node ./test/runTests.js
2323

2424
- name: Run tests
25-
run: node ./test/validateModuleExportsMatchCommonJS/index.js
2625
if: matrix.node-version == '14.x'
26+
run: |
27+
node ./test/validateModuleExportsMatchCommonJS/index.js
28+
NODE_OPTIONS=--experimental-vm-modules node ./test/vm-modules/index.js

test/runTests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const mainVersion = Number(process.version.replace("v","").split(".")[0])
55

66
// Loop through all the folders and run `npm test`
77

8-
const blocklist = ["validateModuleExportsMatchCommonJS", "node_modules"];
8+
const blocklist = ["validateModuleExportsMatchCommonJS", "node_modules", "vm-modules"];
99
const filesInTest = fs.readdirSync(__dirname);
1010
const tests = filesInTest
1111
.filter((f) => fs.statSync(path.join(__dirname, f)).isDirectory())

0 commit comments

Comments
 (0)