-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (40 loc) · 1.05 KB
/
build-example-app.yml
File metadata and controls
47 lines (40 loc) · 1.05 KB
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
name: Build Example App
on:
pull_request:
push:
branches:
- master
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
cache: npm
- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/cache@v3
with:
path: example/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('example/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: node --version
- run: npm --version
- name: Run npm install (sdk)
run: npm install
- name: Run npm install (app)
run: npm install
working-directory: example
- name: Create config file
working-directory: example
run: |
echo '{ "proxy": "http://fakeserver.com" }' > config.json
- run: npm run build
working-directory: example