Skip to content

Instantly share code, notes, and snippets.

Last active August 31, 2021 14:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
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