Fix dependabot issues
This commit is contained in:
parent
c89d9bd8b0
commit
531c6ba7c8
705 changed files with 53406 additions and 20466 deletions
10
node_modules/ci-parallel-vars/index.js
generated
vendored
10
node_modules/ci-parallel-vars/index.js
generated
vendored
|
|
@ -6,7 +6,7 @@ type Match = null | { index: number, total: number };
|
|||
*/
|
||||
|
||||
const envs = [
|
||||
// Knapsack / TravisCI
|
||||
// Knapsack / TravisCI / GitLab
|
||||
{
|
||||
index: 'CI_NODE_INDEX',
|
||||
total: 'CI_NODE_TOTAL',
|
||||
|
|
@ -26,6 +26,11 @@ const envs = [
|
|||
index: 'BUILDKITE_PARALLEL_JOB',
|
||||
total: 'BUILDKITE_PARALLEL_JOB_COUNT',
|
||||
},
|
||||
// Semaphore
|
||||
{
|
||||
index: 'SEMAPHORE_CURRENT_JOB',
|
||||
total: 'SEMAPHORE_JOB_COUNT',
|
||||
},
|
||||
];
|
||||
|
||||
let maybeNum = val => {
|
||||
|
|
@ -40,6 +45,9 @@ for (let env of envs) {
|
|||
let total = maybeNum(process.env[env.total]);
|
||||
|
||||
if (index !== null && total !== null) {
|
||||
if (process.env.GITLAB_CI) {
|
||||
index = index - 1;
|
||||
}
|
||||
match = { index, total };
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue