summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-05-13 15:41:01 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-05-13 15:41:01 -0700
commit2d55154304f91b0559214565bcfd5729cff8f8e7 (patch)
tree85eb52b61b79c7ca1270c2a89f0e1dd3ac3d8687 /.github/workflows
parentb1dab7360ee9104e1c81d2010369bb2075811eb7 (diff)
CI: Run linter.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml15
1 files changed, 9 insertions, 6 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index cb205f9..c0f03fd 100644
--- 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