fix: add handling for 404 errors in scale-down tests and improve error logging #1510
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build lambdas | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'lambdas/**' | |
| - '.github/workflows/lambda.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: [22] | |
| container: | |
| image: node:${{ matrix.node }} | |
| defaults: | |
| run: | |
| working-directory: ./lambdas | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Run prettier | |
| run: yarn format-check | |
| - name: Run linter | |
| run: yarn lint | |
| - name: Run tests | |
| id: test | |
| run: yarn test | |
| - name: Build distribution | |
| run: yarn build | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| if: ${{ failure() }} | |
| with: | |
| name: coverage-reports | |
| path: ./**/coverage | |
| retention-days: 5 |