Skip to content

Commit

Permalink
Add parallelism to runners configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jun 5, 2022
1 parent f325bda commit 2d62186
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/runners/cli/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const SHELL_VALUES = ['none', 'sh', 'bash']
// Shells have a performance impact and are less portable, so they are opt-in
const DEFAULT_SHELL = 'none'

export const config = [
export const config = new Set([
{
name: 'shell',
default: DEFAULT_SHELL,
Expand All @@ -13,4 +13,4 @@ export const config = [
errorMessage: { enum: `must be one of: ${SHELL_VALUES.join(', ')}` },
},
},
]
])
34 changes: 18 additions & 16 deletions src/runners/node/config/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,23 @@ import { EXAMPLE_REQUIRE } from '../handler/start/require_config.js'

import { versionRule } from './version.js'

export const config = [
export const config = new Set([
versionRule,
{
name: 'require',
default: [],
transform: normalizeArray,
},
{
name: 'require.*',
required: true,
schema: {
type: 'string',
minLength: 1,
errorMessage: { minLength: 'must not be an empty string' },
[
{
name: 'require',
default: [],
transform: normalizeArray,
},
example: EXAMPLE_REQUIRE,
},
]
{
name: 'require.*',
required: true,
schema: {
type: 'string',
minLength: 1,
errorMessage: { minLength: 'must not be an empty string' },
},
example: EXAMPLE_REQUIRE,
},
],
])

0 comments on commit 2d62186

Please sign in to comment.