浏览代码

HUE-8855 [ci] Adding linting of js files

Only adds 20s
Romain 6 年之前
父节点
当前提交
0d73b2a38f
共有 1 个文件被更改,包括 8 次插入6 次删除
  1. 8 6
      .circleci/config.yml

+ 8 - 6
.circleci/config.yml

@@ -87,12 +87,14 @@ jobs:
             cp ~/repo/.babelrc .
             cp ~/repo/.babelrc .
             npm run test
             npm run test
 
 
-      # # Code analyses
-      # - run:
-      #     name: run js tests
-      #     command: |
-      #       cd /usr/share/hue
-      #       npm run lint
+      # Code analyses
+      - run:
+          name: run js lint
+          command: |
+            cd /usr/share/hue
+            cp ~/repo/.eslint* .
+            cp ~/repo/.prettierrc .
+            npm run lint
 
 
       - store_artifacts:
       - store_artifacts:
           path: test-reports
           path: test-reports