kyuubi/.github/workflows/web-ui.yml
Cheng Pan fec6ee6110
[KYUUBI #4285] Do not cancel CI jobs on stable branch
### _Why are the changes needed?_

Since https://github.com/apache/kyuubi/pull/2175, the previous running CI jobs will be canceled on the same branch or PR to save CI resources, this PR keeps the behavior for PR but doesn't cancel the running CI jobs when commit to the stable branch.

Ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [x] Add screenshots for manual tests if appropriate

I pushed an empty commit to verify the behavior does not change in PR, and I need to merge this to master first, then merge another PR immediately to verify the rest behaviors.

- [ ] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #4285 from pan3793/ci-con.

Closes #4285

3aa7f427e [Cheng Pan] empty
4156eb196 [Cheng Pan] Do not cancel CI jobs on stable branch

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2023-02-09 19:27:42 +08:00

35 lines
669 B
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-22.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup npm
uses: actions/setup-node@v3
with:
node-version: 16
- name: npm run coverage & build
run: |
cd ./kyuubi-server/web-ui
npm install pnpm -g
pnpm install
pnpm run coverage
pnpm run build