-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.25 KB
/
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
43
44
45
46
47
48
49
50
name: CI
on: [push, pull_request]
env:
npm_config_engine_strict: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Set up environment
run: mkdir cdk.tmp
working-directory: aws/environment-setup
- name: Set up test environment
run: cp dummy.env .env
working-directory: aws/environment-setup
- run: npm ci
working-directory: aws/utils
- run: npm run test
working-directory: aws/utils
- run: npm ci
working-directory: aws/environment-setup
- run: npm run testsynth
working-directory: aws/environment-setup
- run: npm run test
working-directory: aws/environment-setup
# don't run the actual deploy in the CI, but run everything up to here to get the best idea of whether it works
# edge code
- run: npm ci
working-directory: edge/iot
- run: npm run test
working-directory: edge/iot
- name: Set up environment for docker build
run: mkdir example-container/app && cp -r *.js* node_modules example-container/app/
working-directory: edge/iot
- run: docker-compose build
working-directory: edge/iot/example-container