-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.17 KB
/
main.yaml
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
41
name: CI
on:
push:
branches:
- main
jobs:
tests:
name: Lint & Test
runs-on: ubuntu-latest
container: node:lts
timeout-minutes: 5
steps:
- name: Check out repository code
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- uses: actions/setup-python@v3
- uses: aws-actions/setup-sam@v2
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Verify secrets
run: echo ${{ secrets.AWS_REGION }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: FN Eslint
run: cd lambdas && yarn && yarn lint
- name: Layers Eslint
run: cd layers/general && yarn && yarn lint
- name: Layers Compilation
run: cd layers/general && yarn build
- name: Building
run: yarn build
# - name: Tests
# run: yarn test