-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 1.18 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
name: CI
on: [push, pull_request]
env:
npm_config_engine_strict: true
jobs:
build:
runs-on: ubuntu-latest
steps:
# checkout a dependent project
- uses: actions/checkout@v2
with:
repository: tstibbs/cloud-core
path: 'cloud-core' # will resolve to /home/runner/work/smart-home-integration/smart-home-integration/cloud-core
# checkout 'this' project
- uses: actions/checkout@v2
with:
path: 'smart-home-integration' # will resolve to /home/runner/work/smart-home-integration/smart-home-integration/smart-home-integration
- uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Set up environment
run: mkdir cdk.tmp
working-directory: smart-home-integration
- name: Load cloud-core dependencies
run: npm ci
working-directory: cloud-core/aws/utils
- run: npm ci
working-directory: smart-home-integration
- run: npm run testsynth
working-directory: smart-home-integration
- run: npm run test
working-directory: smart-home-integration
# don't run the actual deploy in the CI, but run everything up to here to get the best idea of whether it works