build: add a cmake target for all used linters #18543

* build: move the logic for linters to cmake
Cmake is our source of truth. We should have as much of our build
process there as possible so everyone can make use of it.

* build: remove redundant check for ninja generator
The minimum cmake version as of writing this is 3.10, which has ninja
support.
This commit is contained in:
dundargoc
2022-06-09 17:09:24 +02:00
committed by GitHub
parent 9662cd7f48
commit 6d57bb89c1
7 changed files with 62 additions and 82 deletions

View File

@@ -107,11 +107,11 @@ jobs:
run: ./ci/run_tests.sh build_nvim
- if: "!cancelled()"
name: clint-full
run: ./ci/run_lint.sh clint-full
name: lintcfull
run: ./ci/run_lint.sh lintcfull
- if: "!cancelled()"
name: stylua
name: lintstylua
uses: JohnnyMorganz/stylua-action@1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
@@ -124,16 +124,16 @@ jobs:
git diff --color --exit-code
- if: "!cancelled()"
name: lualint
run: ./ci/run_lint.sh lualint
name: lintlua
run: ./ci/run_lint.sh lintlua
- if: "!cancelled()"
name: pylint
run: ./ci/run_lint.sh pylint
name: lintpy
run: ./ci/run_lint.sh lintpy
- if: "!cancelled()"
name: shlint
run: ./ci/run_lint.sh shlint
name: lintsh
run: ./ci/run_lint.sh lintsh
- if: "!cancelled()"
name: check-single-includes