forked from cloudera/hue
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (47 loc) · 1.22 KB
/
commitflow-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
56
57
58
59
name: UI CI
on:
push:
branches:
- master
pull_request:
branches:
- master
paths:
- '**.js'
- '**.jsx'
- '**.ts'
- '**.tsx'
- '**.less'
- '**.scss'
- '**.vue'
- 'package*.json'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Caching npm with setup node
uses: actions/setup-node@v3
with:
node-version: 14
cache: 'npm'
- name: Install npm dependencies
run: npm ci
- name: run commit title format check
run: ./tools/ci/check_for_commit_message.sh
- name: run npm version checker
run: npm run check-pinned-versions
- name: run npm license checker
run: npm run check-license
- name: run npm absolute path detection
run: npm run check-absolute-paths
- name: run js lint
run: npm run lint
- name: run style lint
run: npm run style-lint
- name: run js tests
run: |
# https://jestjs.io/docs/en/troubleshooting.html#tests-are-extremely-slow-on-docker-andor-continuous-integration-ci-server
sed -i 's/"test": "jest"/"test": "jest --runInBand"/g' package.json
npm run test