-
Notifications
You must be signed in to change notification settings - Fork 20
37 lines (36 loc) · 1.01 KB
/
build-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
name: "Build UI"
on:
workflow_call:
inputs:
node-version:
required: true
type: string
jobs:
build-ui:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ui
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
- name: install deps
uses: ./.github/actions/cached-ui-deps
with:
node-version: ${{ inputs.node-version }}
- name: Code linting
run: yarn run lint
- name: Unit test
run: yarn run test
- name: Build UCC UI
run: yarn run build
- name: List deps into dependencies.txt
run: yarn list --prod --depth 0 | python ../.github/scripts/format_yarn_deps.py --output-file=dist/package/appserver/static/js/dependencies.txt
- name: Upload dist with name UCC-UI-build
uses: actions/upload-artifact@v3
with:
name: UCC-UI-build
path: ui/dist/