GitHub CI: Add ShellCheck (#2554)
authorAlexander Zhogov <alexander.zhogov@intel.com>
Tue, 6 Oct 2020 10:16:46 +0000 (13:16 +0300)
committerGitHub <noreply@github.com>
Tue, 6 Oct 2020 10:16:46 +0000 (13:16 +0300)
* Add shellcheck
* Remove fetchDepth: 1

.ci/azure/linux.yml
.ci/azure/mac.yml
.ci/azure/windows.yml
.github/workflows/code_style.yml

index 8ec853d..b0d6ced 100644 (file)
@@ -15,7 +15,6 @@ jobs:
   steps:
   - checkout: self
     clean: true
-    fetchDepth: 1
     lfs: false
     submodules: recursive
     path: openvino
index 1fdc515..86e9842 100644 (file)
@@ -15,7 +15,6 @@ jobs:
   steps:
   - checkout: self
     clean: true
-    fetchDepth: 1
     lfs: false
     submodules: recursive
     path: openvino
index e43777a..3b61ee9 100644 (file)
@@ -17,7 +17,6 @@ jobs:
   steps:
   - checkout: self
     clean: true
-    fetchDepth: 1
     lfs: false
     submodules: recursive
     path: openvino
index d05782e..fa6db10 100644 (file)
@@ -38,7 +38,32 @@ jobs:
         with:
           name: ngraph_code_style_diff
           path: ngraph_code_style_diff.patch
-          
+
+  ShellCheck:
+    runs-on: ubuntu-18.04
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          submodules: recursive
+
+      - name: Install ShellCheck
+        run: sudo apt --assume-yes install shellcheck
+
+      - name: Install dependencies
+        run: |
+          sudo apt --assume-yes install libusb-1.0-0-dev
+          python3 -m pip install -r ./inference-engine/ie_bridges/python/requirements.txt
+
+      - name: CMake
+        run: |
+          mkdir build
+          cd build
+          cmake ..
+
+      - name: ShellCheck
+        run: make ie_shellcheck
+        working-directory: build
+
   Java:
     runs-on: ubuntu-18.04
     steps: