# 🔍 Description ## Issue References 🔗 This pull request fixes # ## Describe Your Solution 🔧 - as titled ## Types of changes 🔖 - [ ] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 #### Behavior Without This Pull Request ⚰️ #### Behavior With This Pull Request 🎉 #### Related Unit Tests --- # Checklist 📝 - [ ] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes #6775 from bowenliang123/gha-cache-v4. Closes #6775 de7b9fdf0 [Bowen Liang] actions/dependency-review-action@v4 c9e41923a [Bowen Liang] actions/cache@v4 Authored-by: Bowen Liang <liangbowen@gf.com.cn> Signed-off-by: Bowen Liang <liangbowen@gf.com.cn>
56 lines
1.6 KiB
YAML
56 lines
1.6 KiB
YAML
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-24.04
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
- name: Setup JDK 8
|
|
uses: actions/setup-java@v4
|
|
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@v4
|
|
with:
|
|
node-version: ${{env.NODEJS_VERSION}}
|
|
cache: npm
|
|
cache-dependency-path: ./kyuubi-server/web-ui/package.json
|
|
- name: Cache NPM dependencies
|
|
uses: actions/cache@v4
|
|
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 --frozen-lockfile
|
|
pnpm run coverage
|
|
pnpm run build
|