Skip to content

[SDT-495] Add npm step - #31

Open
rpowis wants to merge 2 commits into
mainfrom
SDT-495
Open

[SDT-495] Add npm step#31
rpowis wants to merge 2 commits into
mainfrom
SDT-495

Conversation

@rpowis

@rpowis rpowis commented Jan 18, 2018

Copy link
Copy Markdown

This adds the ability to run npm commands without resorting to shellStep.

void 'test prepended bash script'() {
given:
JobBuilder jobBuilder = new JobBuilder('test-job', 'test-job-description').
withSteps(npmStep("nvm use 4.8.4", ["test"]))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will the first command always be something in the form of npm use x.y.x? If so I wonder if it makes sense to add the desired npm version as a parameter in npmStep method? so you could then call it like npmStep("4.8.4", ["test"]), which would then implicitly know to call npm use x.y.x as the first operation.

@hmrc-web-operations
hmrc-web-operations changed the base branch from master to main October 19, 2021 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants