Check formatting in pipeline
This commit is contained in:
@@ -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
|
||||||
|
|||||||
+2
-1
@@ -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/",
|
||||||
|
|||||||
Reference in New Issue
Block a user