Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

fix(csharp): fixed sample code and created CI job to validate #268

Merged
merged 10 commits into from
Sep 11, 2021

Conversation

ryparker
Copy link
Contributor

@ryparker ryparker commented Aug 13, 2021

Summary

This PR implements CI workflows that verify changes do not break builds.

  • Fix csharp sample code so that it works with cdk synth
  • GitHub Workflows that synths the csharp sample code
  • Update csharp workshop instructions to reflect the fixes I was required to implement

Fixes #259, #175, #152


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mergify
Copy link
Contributor

mergify bot commented Aug 13, 2021

"### Pull Request Checklist * [ ] Testing - Unit test added (prefer not to modify an existing test, otherwise, it's probably a breaking change) * [ ] Title and Description - Change type: title prefixed with fix, feat and module name in parens, which will appear in changelog - Title: use lower-case and doesn't end with a period - Breaking?: last paragraph: 'BREAKING CHANGE: <describe what changed + link for details>' - Issues: Indicate issues fixed via: 'Fixes #xxx' or 'Closes #xxx'"

@ryparker ryparker self-assigned this Aug 13, 2021

<PackageReference Include="Amazon.Jsii.Analyzers" Version="*" PrivateAssets="all" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer necessary. Removed


<PackageReference Include="Eladb.DynamoTableViewer" Version="3.0.6" />
<PackageReference Include="Eladb.DynamoTableViewer" Version="[0.1.*,3)" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version specification was required in order for Eladb.DynamoTableViewer to share compatible peer dependencies with the latest CDK packages.


<PackageReference Include="Eladb.DynamoTableViewer" Version="3.1.2" />

<PackageReference Include="Amazon.Jsii.Analyzers" Version="*" PrivateAssets="all" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same changes as main-workshop

"npm install -g aws-cdk",
"sudo apt-get install -y dotnet-sdk-3.1"
},
BuildCommands = new [] { "dotnet build" } // Language-specific build cmd
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecated API params

@@ -62,7 +62,7 @@ namespace CdkWorkshop

## Now we can access the table from our stack

Go back to `CdkWorkshop.cs` and assign the `Table` property of the table viewer:
Copy link
Contributor Author

@ryparker ryparker Aug 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CdkWorkshop is a directory not a file. This seems to be talking about src/CdkWorkshop/CdkWorkshopStack.cs

@ryparker ryparker merged commit 7889246 into master Sep 11, 2021
@ryparker ryparker deleted the csharp-fixes-and-ci-2 branch September 11, 2021 00:40
@ryparker ryparker added the contribution/core This is a PR that came from AWS. label Sep 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
3 participants