name: Lint CI on: push: branches: [ master ] pull_request: branches: [ master ] paths: - 'include/jwt-cpp/**.h' - 'tests/**.cpp' - '.github/workflows/lint.yml' jobs: cpp: runs-on: ubuntu-20.04 strategy: matrix: files: ["include/jwt-cpp/*.h", "tests/**.cpp"] steps: - run: sudo apt-get install clang-format-10 - uses: actions/checkout@v2 - run: clang-format-10 -i ${{ matrix.files }} - run: exit $(git status -s | wc -l)