Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to test CDK code #19

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/cdk-ci-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CDK Test

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: '20.8.0'

- name: Run CDK Test
run: |
cd infrastructure
npm install
npm test
File renamed without changes.
2 changes: 1 addition & 1 deletion infrastructure/test/vpc-stack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ test('VPC Stack Test', () => {
const vpcStackTemplate = Template.fromStack(vpcStack);
vpcStackTemplate.resourceCountIs('AWS::EC2::VPC', 1);
vpcStackTemplate.resourceCountIs('AWS::EC2::Subnet', 4);
});
});
Loading