-
Notifications
You must be signed in to change notification settings - Fork 70
42 lines (35 loc) · 877 Bytes
/
ci.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
name: Run CI Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
cfn-linter:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Cloud Formation Linter with Latest Version
uses: scottbrenner/cfn-lint-action@v2
- name: Print the Cloud Formation Linter Version & run Linter.
run: |
cfn-lint --version
cfn-lint
api-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Nodejs 14
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install dependencies
run: npm i
working-directory: ./pca-ui/src/lambda
- name: Run unit tests
run: npm t
working-directory: ./pca-ui/src/lambda