-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 983 Bytes
/
build.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
41
42
43
name: cfn-eval CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: Testing cfn-eval
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Clone repo
uses: actions/checkout@v2
- name: Install cfn-lint
run: pip install cfn-lint --user
- name: Install cfn-nag
run: sudo gem install cfn-nag
- name: Lint CloudFormation
run: cfn-lint -i W3002 -t cloudformation.yml
- name: Assess CloudFormation for Security Issues
run: cfn_nag_scan --input-path cloudformation.yml
- name: Install Lambda Function Dependencies
working-directory: ./lambda
run: npm install
- name: Lint Lambda Function
working-directory: ./lambda
run: npm run lint
- name: Test Lambda Function
working-directory: ./lambda
run: npm run test