Merge upstream changes #21
Workflow file for this run
This file contains 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/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [20] | |
container: | |
image: node:${{ matrix.node }} | |
defaults: | |
run: | |
working-directory: ./lambdas | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3.2.0 | |
- 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@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v31.2 | |
if: ${{ failure() }} | |
with: | |
name: coverage-reports | |
path: ./**/coverage | |
retention-days: 5 |