Skip to content

Instantly share code, notes, and snippets.

@OksanaH
Created August 31, 2021 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OksanaH/e9a756103239f375e335ff25a43f5838 to your computer and use it in GitHub Desktop.
Save OksanaH/e9a756103239f375e335ff25a43f5838 to your computer and use it in GitHub Desktop.
CDKPipelinesPipelineStack.cs
var pipeline = new Amazon.CDK.Pipelines.CodePipeline(this, "WhatDayOfWeekPipeline", new CodePipelineProps
{
PipelineName = "WhatDayOfWeekPipeline",
SelfMutation = false,
Synth = new ShellStep("synth", new ShellStepProps()
{
Input = CodePipelineSource.Connection("OksanaH/CDKPipelines", "main", new ConnectionSourceOptions()
{
ConnectionArn = connectionArn
}),
InstallCommands = new string[] { "npm install -g aws-cdk" },
Commands = new string[] {
"cd App", "dotnet restore WhatDayOfWeekTests/WhatDayOfWeekTests.csproj",
"dotnet test -c release WhatDayOfWeekTests/WhatDayOfWeekTests.csproj --logger trx --results-directory ./testresults",
"cd ..",
"cdk synth" }
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment