diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index a50c7d1e0..bfccf8bcf 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -78,6 +78,11 @@ jobs: cd ui npm ci + - name: npm check-formatting + run: | + cd ui + npm run check-formatting + - name: npm build run: | cd ui diff --git a/ui/package.json b/ui/package.json index 203f034c4..beb8beacb 100644 --- a/ui/package.json +++ b/ui/package.json @@ -32,7 +32,8 @@ "build": "react-scripts build", "test": "react-scripts test", "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": ".", "proxy": "http://localhost:4633/",