From ad6c86d78a8cc3a093990b4f6961074a1213f1ad Mon Sep 17 00:00:00 2001 From: Deluan Date: Sun, 26 Apr 2020 14:48:29 -0400 Subject: [PATCH] Check formatting in pipeline --- .github/workflows/pipeline.yml | 5 +++++ ui/package.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index a50c7d1e..bfccf8bc 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 203f034c..beb8beac 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/",