+ Run lint first at npm publication CI
+ Import from cluster the minimum in test
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
with:
node-version: 12
- run: npm ci
- - run: npm run test
- run: npm run lint
+ - run: npm run test
- run: npm run coverage
publish-npm:
'use strict'
const { ClusterWorker } = require('../../../lib/index')
-const cluster = require('cluster')
+const { isMaster } = require('cluster')
function test (data) {
for (let i = 0; i <= 50; i++) {
}
JSON.stringify(o)
}
- return cluster.isMaster
+ return isMaster
}
module.exports = new ClusterWorker(test, { maxInactiveTime: 500 })