Skip to content

Commit 3adb7bc

Browse files
fix: CICD
1 parent 7f34f8a commit 3adb7bc

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/common-test.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,54 @@ jobs:
263263
- name: Test - observability mode
264264
run: OBSERVABLE_MODE=true npx vitest --retry 1 test/sls-esbuild-esm.test.ts
265265

266+
test-osls-basic:
267+
runs-on: ubuntu-latest
268+
concurrency:
269+
group: test-osls-basic
270+
steps:
271+
- uses: actions/checkout@v4
272+
- name: Use Node.js
273+
uses: actions/setup-node@v4
274+
with:
275+
node-version: ${{ env.node_version }}
276+
registry-url: 'https://registry.npmjs.org'
277+
- name: Install dependencies
278+
run: npm ci
279+
- name: Download build artifact
280+
uses: actions/download-artifact@v4
281+
if: ${{ inputs.mode == 'build' }}
282+
with:
283+
name: dist
284+
path: dist
285+
- name: Install lambda-live-debugger globally
286+
if: ${{ inputs.mode == 'global' }}
287+
run: |
288+
npm i lambda-live-debugger -g
289+
290+
working-directory: test
291+
- name: Install lambda-live-debugger locally
292+
if: ${{ inputs.mode == 'local' }}
293+
run: |
294+
npm i lambda-live-debugger
295+
working-directory: test
296+
- name: Configure AWS Credentials
297+
uses: aws-actions/configure-aws-credentials@v4
298+
with:
299+
aws-region: eu-west-1
300+
role-to-assume: ${{ secrets.AWS_ROLE }}
301+
role-session-name: GitHubActions
302+
- name: Destroy
303+
run: npm run destroy
304+
working-directory: test/osls-basic
305+
continue-on-error: true
306+
- name: Deploy
307+
run: npm run deploy
308+
working-directory: test/osls-basic
309+
- name: Test
310+
run: npx vitest --retry 1 test/sls-basic.test.ts
311+
- name: Test - observability mode
312+
run: OBSERVABLE_MODE=true npx vitest --retry 1 test/osls-basic.test.ts
313+
266314
test-sam-basic:
267315
runs-on: ubuntu-latest
268316
concurrency:

0 commit comments

Comments
 (0)