Skip to content

Commit

Permalink
test package building on change (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
udondan authored Sep 18, 2023
1 parent 2b1d5c9 commit 9101992
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Build source w/ jsii
uses: udondan/[email protected]
with:
VERSION: ${{ steps.get_version.outputs.VERSION }}
BUILD_SOURCE: true

- name: Build packages w/ jsii
uses: udondan/[email protected]
with:
BUILD_PACKAGES: true

report-status:
name: success
runs-on: ubuntu-latest
Expand Down
3 changes: 1 addition & 2 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ export class KeyPair extends Construct implements ITaggable {
}

const stack = Stack.of(this).stackName;
this.prefix =
props.resourcePrefix !== undefined ? props.resourcePrefix : stack;
this.prefix = props.resourcePrefix ?? stack;
if (this.prefix.length + cleanID.length > 62)
// Cloudformation limits names to 63 characters.
Annotations.of(this).addError(
Expand Down

0 comments on commit 9101992

Please sign in to comment.