@@ -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 :
0 commit comments