-
Notifications
You must be signed in to change notification settings - Fork 35
44 lines (39 loc) · 1.07 KB
/
ci-workflow.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
name: CI
on: [ push ]
jobs:
dashboard:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18.x
cache: 'npm'
cache-dependency-path: dashboard/package-lock.json
- name: npm install, build, and test
run: |
npm install --prefix dashboard
npm run lint --prefix dashboard --if-present
npm run test --prefix dashboard --if-present
npm run build --prefix dashboard
env:
CI: true
script:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18.x
cache: 'npm'
cache-dependency-path: middleware/package-lock.json
- name: npm install, build, and test
run: |
npm install --prefix middleware
npm run lint --prefix middleware --if-present
npm run test --prefix middleware --if-present
npm run build --prefix middleware
env:
CI: true