Check formatting in pipeline
This commit is contained in:
parent
f3097496c6
commit
ad6c86d78a
2 changed files with 7 additions and 1 deletions
5
.github/workflows/pipeline.yml
vendored
5
.github/workflows/pipeline.yml
vendored
|
|
@ -78,6 +78,11 @@ jobs:
|
||||||
cd ui
|
cd ui
|
||||||
npm ci
|
npm ci
|
||||||
|
|
||||||
|
- name: npm check-formatting
|
||||||
|
run: |
|
||||||
|
cd ui
|
||||||
|
npm run check-formatting
|
||||||
|
|
||||||
- name: npm build
|
- name: npm build
|
||||||
run: |
|
run: |
|
||||||
cd ui
|
cd ui
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,8 @@
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
"eject": "react-scripts eject",
|
"eject": "react-scripts eject",
|
||||||
"prettier": "prettier --write src/**/*.js"
|
"prettier": "prettier --write src/*.js src/**/*.js",
|
||||||
|
"check-formatting": "prettier -c src/*.js src/**/*.js"
|
||||||
},
|
},
|
||||||
"homepage": ".",
|
"homepage": ".",
|
||||||
"proxy": "http://localhost:4633/",
|
"proxy": "http://localhost:4633/",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue