@@ -131,6 +131,55 @@ jobs:
131131 - name : Test - observability mode
132132 run : OBSERVABLE_MODE=true npx vitest --retry 2 test/cdk-esm.test.ts
133133
134+ test-cdk-nested :
135+ runs-on : ubuntu-latest
136+ concurrency :
137+ group : test-cdk-nested
138+ steps :
139+ - uses : actions/checkout@v4
140+ - name : Use Node.js
141+ uses : actions/setup-node@v4
142+ with :
143+ node-version : ${{ env.node_version }}
144+ registry-url : ' https://registry.npmjs.org'
145+ - name : Install dependencies
146+ run : |
147+ node prepareForTest.js cdk-nested
148+ npm i
149+ - name : Download build artifact
150+ uses : actions/download-artifact@v4
151+ if : ${{ inputs.mode == 'build' }}
152+ with :
153+ name : dist
154+ path : dist
155+ - name : Install lambda-live-debugger globally
156+ if : ${{ inputs.mode == 'global' }}
157+ run : |
158+ npm i lambda-live-debugger@${{ inputs.version || 'latest' }} -g
159+ working-directory : test
160+ - name : Install lambda-live-debugger locally
161+ if : ${{ inputs.mode == 'local' }}
162+ run : |
163+ npm i lambda-live-debugger@${{ inputs.version || 'latest' }}
164+ working-directory : test
165+ - name : Configure AWS Credentials
166+ uses : aws-actions/configure-aws-credentials@v4
167+ with :
168+ aws-region : eu-west-1
169+ role-to-assume : ${{ secrets.AWS_ROLE }}
170+ role-session-name : GitHubActions
171+ - name : Destroy
172+ run : npm run destroy
173+ working-directory : test/cdk-nested
174+ continue-on-error : true
175+ - name : Deploy
176+ run : npm run deploy
177+ working-directory : test/cdk-nested
178+ - name : Test
179+ run : npx vitest --retry 2 test/cdk-nested.test.ts
180+ - name : Test - observability mode
181+ run : OBSERVABLE_MODE=true npx vitest --retry 2 test/cdk-nested.test.ts
182+
134183 test-sls-basic :
135184 runs-on : ubuntu-latest
136185 concurrency :
@@ -484,6 +533,59 @@ jobs:
484533 - name : Test - observability mode
485534 run : OBSERVABLE_MODE=true npx vitest --retry 2 test/sam-basic.test.ts
486535
536+ test-sam-nested :
537+ runs-on : ubuntu-latest
538+ concurrency :
539+ group : test-sam-nested
540+ steps :
541+ - uses : actions/checkout@v4
542+ - uses : aws-actions/setup-sam@v2
543+ with :
544+ use-installer : true
545+ token : ${{ secrets.GITHUB_TOKEN }}
546+ - name : Use Node.js
547+ uses : actions/setup-node@v4
548+ with :
549+ node-version : ${{ env.node_version }}
550+ registry-url : ' https://registry.npmjs.org'
551+ - name : Install dependencies
552+ run : |
553+ node prepareForTest.js sam-nested
554+ npm i
555+ - name : Download build artifact
556+ uses : actions/download-artifact@v4
557+ if : ${{ inputs.mode == 'build' }}
558+ with :
559+ name : dist
560+ path : dist
561+ - name : Install lambda-live-debugger globally
562+ if : ${{ inputs.mode == 'global' }}
563+ run : |
564+ npm i lambda-live-debugger@${{ inputs.version || 'latest' }} -g
565+ working-directory : test
566+ - name : Install lambda-live-debugger locally
567+ if : ${{ inputs.mode == 'local' }}
568+ run : |
569+ npm i lambda-live-debugger@${{ inputs.version || 'latest' }}
570+ working-directory : test
571+ - name : Configure AWS Credentials
572+ uses : aws-actions/configure-aws-credentials@v4
573+ with :
574+ aws-region : eu-west-1
575+ role-to-assume : ${{ secrets.AWS_ROLE }}
576+ role-session-name : GitHubActions
577+ - name : Destroy
578+ run : npm run destroy
579+ working-directory : test/sam-nested
580+ continue-on-error : true
581+ - name : Deploy
582+ run : npm run deploy
583+ working-directory : test/sam-nested
584+ - name : Test
585+ run : npx vitest --retry 2 test/sam-nested.test.ts
586+ - name : Test - observability mode
587+ run : OBSERVABLE_MODE=true npx vitest --retry 2 test/sam-nested.test.ts
588+
487589 test-sam-alt :
488590 runs-on : ubuntu-latest
489591 concurrency :
0 commit comments