From 0157b9a476cc31fd3d430ba8fc25d07abcc9f9d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E6=89=AC?= Date: Mon, 23 Aug 2021 19:30:08 +0800 Subject: [PATCH] [FLINK-23112][runtime-web] Enforce npm run lint in ci --- flink-runtime-web/pom.xml | 4 ++-- flink-runtime-web/web-dashboard/package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/flink-runtime-web/pom.xml b/flink-runtime-web/pom.xml index a9e1af545914f2..e9f64966637944 100644 --- a/flink-runtime-web/pom.xml +++ b/flink-runtime-web/pom.xml @@ -285,12 +285,12 @@ under the License. - npm run build + npm run ci-check npm - run build + run ci-check diff --git a/flink-runtime-web/web-dashboard/package.json b/flink-runtime-web/web-dashboard/package.json index f5aeabc9afb4b7..3cb7727b23c21e 100644 --- a/flink-runtime-web/web-dashboard/package.json +++ b/flink-runtime-web/web-dashboard/package.json @@ -8,6 +8,7 @@ "test": "ng test", "lint": "eslint --cache src --ext .ts,.html && stylelint \"**/*.less\"", "lint:fix": "eslint --fix --cache src --ext .ts,.html && stylelint \"**/*.less\" --fix", + "ci-check": "npm run lint && npm run build", "proxy": "ng serve --proxy-config proxy.conf.json" }, "private": true,