Skip to content

feat(termination-watcher): deregister runners from GitHub on EC2 termination #2010

feat(termination-watcher): deregister runners from GitHub on EC2 termination

feat(termination-watcher): deregister runners from GitHub on EC2 termination #2010

Workflow file for this run

name: Build lambdas
on:
pull_request:
branches:
- main
paths:
- 'lambdas/**'
- '.github/workflows/lambda.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
name: Build and test lambda functions
runs-on: ubuntu-latest
container:
image: node:24@sha256:aa648b387728c25f81ff811799bbf8de39df66d7e2d9b3ab55cc6300cb9175d9
defaults:
run:
working-directory: ./lambdas
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
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@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: ${{ failure() }}
with:
name: coverage-reports
path: ./**/coverage
retention-days: 5