-
-
Save OksanaH/97ee22ef5fdc871df4e7454b40c2f29d to your computer and use it in GitHub Desktop.
CDKPipelinesPipelineStack.cs
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
var step = new CodeBuildStep("Synth", new CodeBuildStepProps | |
{ | |
Input = CodePipelineSource.Connection("OksanaH/CDKPipelines", "main", new ConnectionSourceOptions() | |
{ | |
ConnectionArn = connectionArn | |
}), | |
PrimaryOutputDirectory = "cdk.out", | |
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" | |
}, | |
PartialBuildSpec = BuildSpec.FromObject(reports), | |
RolePolicyStatements = new PolicyStatement[] { new PolicyStatement(policyProps) } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment