Pārlūkot izejas kodu

HUE-8846 [ci] Adding linting in for js

Romain 6 gadi atpakaļ
vecāks
revīzija
4e73a5ceec
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 8 1
      .circleci/config.yml

+ 8 - 1
.circleci/config.yml

@@ -50,7 +50,7 @@ jobs:
             cp -r docs /usr/share/hue/docs
             cp -r docs /usr/share/hue/docs
             make npm-install
             make npm-install
 
 
-      # Run tests!
+      # Run tests
       - run:
       - run:
           name: run python API tests
           name: run python API tests
           command: |
           command: |
@@ -63,6 +63,13 @@ jobs:
             cd /usr/share/hue
             cd /usr/share/hue
             run npm test
             run npm test
 
 
+      # Code analyses
+      - run:
+          name: run js tests
+          command: |
+            cd /usr/share/hue
+            npm run lint-fix
+
       - store_artifacts:
       - store_artifacts:
           path: test-reports
           path: test-reports
           destination: test-reports
           destination: test-reports