forked from finos/vuu
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.14 KB
/
test-ui.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: "Test"
on:
workflow_dispatch:
pull_request:
jobs:
vitest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
run: cd ./vuu-ui && npm install
- run: cd ./vuu-ui && npm run test:vite
# ensure the vuu example and showcase still build
vuu-and-showcase-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install dependencies
run: cd ./vuu-ui && npm install
- name: Build Vuu Libraries
run: cd ./vuu-ui && npm run build
- name: Build showcase
run: cd ./vuu-ui && npm run showcase:build
- name: Build Vuu app
run: cd ./vuu-ui && npm run build:app