|
72 | 72 | - name: Test - observable mode |
73 | 73 | run: OBSERVABLE_MODE=true npx vitest --retry 1 test/cdk-basic.test.ts |
74 | 74 |
|
| 75 | + test-cdk-esm: |
| 76 | + runs-on: ubuntu-latest |
| 77 | + concurrency: |
| 78 | + group: test-cdk-esm |
| 79 | + steps: |
| 80 | + - uses: actions/checkout@v4 |
| 81 | + - name: Use Node.js |
| 82 | + uses: actions/setup-node@v4 |
| 83 | + with: |
| 84 | + node-version: ${{ env.node_version }} |
| 85 | + registry-url: 'https://registry.npmjs.org' |
| 86 | + - name: Install dependencies |
| 87 | + run: npm ci |
| 88 | + - name: Download build artifact |
| 89 | + uses: actions/download-artifact@v4 |
| 90 | + if: ${{ inputs.mode == 'build' }} |
| 91 | + with: |
| 92 | + name: dist |
| 93 | + path: dist |
| 94 | + - name: Install lambda-live-debugger globally |
| 95 | + if: ${{ inputs.mode == 'global' }} |
| 96 | + run: | |
| 97 | + npm i lambda-live-debugger -g |
| 98 | + working-directory: test |
| 99 | + - name: Install lambda-live-debugger locally |
| 100 | + if: ${{ inputs.mode == 'local' }} |
| 101 | + run: | |
| 102 | + npm i lambda-live-debugger |
| 103 | + working-directory: test |
| 104 | + - name: Configure AWS Credentials |
| 105 | + uses: aws-actions/configure-aws-credentials@v4 |
| 106 | + with: |
| 107 | + aws-region: eu-west-1 |
| 108 | + role-to-assume: ${{ secrets.AWS_ROLE }} |
| 109 | + role-session-name: GitHubActions |
| 110 | + - name: Destroy |
| 111 | + run: npm run destroy |
| 112 | + working-directory: test/cdk-esm |
| 113 | + continue-on-error: true |
| 114 | + - name: Deploy |
| 115 | + run: npm run deploy |
| 116 | + working-directory: test/cdk-esm |
| 117 | + - name: Test |
| 118 | + run: npx vitest --retry 1 test/cdk-esm.test.ts |
| 119 | + - name: Test - observable mode |
| 120 | + run: OBSERVABLE_MODE=true npx vitest --retry 1 test/cdk-esm.test.ts |
| 121 | + |
75 | 122 | test-sls-basic: |
76 | 123 | runs-on: ubuntu-latest |
77 | 124 | concurrency: |
|
0 commit comments