npm run all
This commit is contained in:
Родитель
d608414840
Коммит
5385e7fe83
|
@ -805,7 +805,10 @@ test('successfully runs the action on a deployment and parse the given parameter
|
|||
}
|
||||
|
||||
expect(await run()).toBe('success')
|
||||
expect(setOutputMock).toHaveBeenCalledWith('params', '--cpu=2 --memory=4G --env=development --port=8080 --name=my-app -q my-queue')
|
||||
expect(setOutputMock).toHaveBeenCalledWith(
|
||||
'params',
|
||||
'--cpu=2 --memory=4G --env=development --port=8080 --name=my-app -q my-queue'
|
||||
)
|
||||
expect(setOutputMock).toHaveBeenCalledWith('parsed_params', expectedParams)
|
||||
})
|
||||
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -872,3 +872,21 @@ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
|
||||
yargs-parser
|
||||
ISC
|
||||
Copyright (c) 2016, Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software
|
||||
for any purpose with or without fee is hereby granted, provided
|
||||
that the above copyright notice and this permission notice
|
||||
appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
||||
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
|
||||
LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
|
||||
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
|
|
@ -7,7 +7,9 @@ import parse from 'yargs-parser'
|
|||
// @see https://www.npmjs.com/package/yargs-parser
|
||||
export function parseParams(params) {
|
||||
// use the yarns-parser library to parse the parameters as JSON
|
||||
const parsed = parse(params);
|
||||
core.debug(`Parsing parameters string: ${params}, produced: ${JSON.stringify(parsed)}`);
|
||||
return parsed;
|
||||
const parsed = parse(params)
|
||||
core.debug(
|
||||
`Parsing parameters string: ${params}, produced: ${JSON.stringify(parsed)}`
|
||||
)
|
||||
return parsed
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче