Skip to content

Commit 86e4016

Browse files
fix: #118 CloudFormation YAML support
1 parent 94738b8 commit 86e4016

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/common-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ jobs:
7777
run: npx vitest --retry 1 test/cdk-basic.test.ts
7878
- name: Test - observability mode
7979
run: OBSERVABLE_MODE=true npx vitest --retry 1 test/cdk-basic.test.ts
80+
- name: Deploy YAML version
81+
run: npm run deploy-yaml
82+
working-directory: test/cdk-basic
83+
- name: Test YAML
84+
run: npx vitest --retry 1 test/cdk-basic.test.ts
8085

8186
test-cdk-esm:
8287
runs-on: ubuntu-latest

test/cdk-basic/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"scripts": {
88
"deploy": "cdk deploy --all -c environment=test --require-approval never --outputs-file cdk-outputs.json",
99
"build": "cdk synth -c environment=test",
10+
"deploy-yaml": "npx cdk synth -c environment=test CdkbasicStack > CdkbasicStack.yaml & aws cloudformation deploy --template-file CdkbasicStack.yaml --stack-name test-lld-cdk-basic --capabilities CAPABILITY_NAMED_IAM",
1011
"destroy": "cdk destroy --all -c environment=test --force"
1112
},
1213
"devDependencies": {

0 commit comments

Comments
 (0)