forked from github-aws-runners/terraform-aws-github-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 960 Bytes
/
lambda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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@b4ffde65f46336ab88eb53be808477a3936bae11 # 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