Created
January 10, 2021 16:37
-
-
Save JelsB/32916ec7e16559c091167907aa71451b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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