Skip to content

Instantly share code, notes, and snippets.

@JelsB
Created January 10, 2021 16:37
Show Gist options
  • Save JelsB/32916ec7e16559c091167907aa71451b to your computer and use it in GitHub Desktop.
Save JelsB/32916ec7e16559c091167907aa71451b to your computer and use it in GitHub Desktop.
export class PipelineStack extends Stack {
// ...
const preProdApp = new WebServiceStage(this, 'Pre-Prod')
const preProdStage = pipeline.addApplicationStage(preProdApp)
const serviceUrl = pipeline.stackOutput(preProdApp.urlOutput)
preProdStage.addActions(new pipelines.ShellScriptAction({
actionName: 'IntegrationTests',
runOrder: preProdStage.nextSequentialRunOrder(),
additionalArtifacts: [
sourceArtifact
],
commands: [
'npm install',
'npm run build',
'npm run integration'
],
useOutputs: {
SERVICE_URL: serviceUrl
}
}))
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment