-
Notifications
You must be signed in to change notification settings - Fork 913
55 lines (52 loc) · 1.62 KB
/
web-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
44
45
46
47
48
49
50
51
52
53
54
55
name: Web UI
on:
push:
branches:
- master
- branch-*
pull_request:
branches:
- master
- branch-*
concurrency:
group: web-ui-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
web-ui:
name: Kyuubi Web UI check
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: Setup JDK 8
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
- name: Setup Maven
uses: ./.github/actions/setup-maven
- name: Get NodeJS and PNPM version
run: |
NODEJS_VERSION=$(build/mvn help:evaluate -Dexpression=node.version -q -DforceStdout)
PNPM_VERSION=$(build/mvn help:evaluate -Dexpression=pnpm.version -q -DforceStdout)
echo "NODEJS_VERSION=${NODEJS_VERSION}" >> "$GITHUB_ENV"
echo "PNPM_VERSION=${PNPM_VERSION}" >> "$GITHUB_ENV"
- name: Setup Nodejs and NPM
uses: actions/setup-node@v3
with:
node-version: ${{env.NODEJS_VERSION}}
cache: npm
cache-dependency-path: ./kyuubi-server/web-ui/package.json
- name: Cache NPM dependencies
uses: actions/cache@v3
with:
path: ./kyuubi-server/web-ui/node_modules
key: webui-dependencies-${{ hashFiles('kyuubi-server/web-ui/pnpm-lock.yaml') }}
restore-keys: webui-dependencies-
- name: npm run coverage & build
run: |
cd ./kyuubi-server/web-ui
npm install pnpm@${PNPM_VERSION} -g
pnpm install
pnpm run coverage
pnpm run build