cmark

My personal build of CMark ✏️

Commit
2d55154304f91b0559214565bcfd5729cff8f8e7
Parent
b1dab7360ee9104e1c81d2010369bb2075811eb7
Author
John MacFarlane <jgm@berkeley.edu>
Date

CI: Run linter.

Diffstat

1 file changed, 9 insertions, 6 deletions

Status File Name N° Changes Insertions Deletions
Modified .github/workflows/ci.yml 15 9 6
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
@@ -11,8 +11,16 @@ jobs:
     steps:
 
     - uses: actions/checkout@v1
-    - name: clang-tidy check
+    - name: Install clang-tidy
       run: |
+        sudo apt-get install -y clang-tidy-9
+        sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-9 100
+    - name: lint with clang-tidy
+      run: |
+        make lint
+      env:
+        CC: clang
+        CXX: clang++
 
   linux:
 
@@ -30,7 +38,6 @@ jobs:
             cpp: 'g++'
     env:
        CMAKE_OPTIONS: ${{ matrix.cmake_opts }}
-       CMAKE_CXX_CLANG_TIDY: "clang-tidy -checks=-*,readability-*"
        CC: ${{ matrix.compiler.c }}
        CXX: ${{ matrix.compiler.cpp }}
 
@@ -39,10 +46,6 @@ jobs:
     - name: Install valgrind
       run: |
          sudo apt install -y valgrind
-    - name: Install clang-tidy
-      run: |
-        sudo apt-get install -y clang-tidy-9
-        sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-9 100
     - name: Build and test
       run: |
          make