CI: tests in four parts on four runners, every core in use, older PR runs cancelled
npm test ran every file one after another (--test-concurrency=1, from when there were three files). It now runs as many files at once as there are cores (TEST_JOBS=1 for the old way), and --shard i/n picks one of n parts of about equal time, balanced by tests/durations.json (npm run test:timings). CI runs four parts and the build side by side; a final 'test' job is green only when all are, so the check keeps its name. A newer push to a PR cancels the older run.
This commit is contained in:
parent
7756d89d41
commit
2d1f48f3e6
4 changed files with 129 additions and 7 deletions
|
|
@ -11,6 +11,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"test": "node scripts/test.js",
|
||||
"test:timings": "node scripts/test-timings.js",
|
||||
"build": "node scripts/build.js",
|
||||
"i18n:check": "node scripts/i18n-check.js",
|
||||
"i18n:fix": "node scripts/i18n-check.js --fix",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue