-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (34 loc) · 1004 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Lint
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
clang-tidy:
name: clang-tidy
runs-on: ubuntu-22.04
steps:
- name: Clone the repository
uses: actions/checkout@v4
with:
submodules: true
- name: Run clang-tidy
uses: ./.github/actions/run-linter
with:
lint_program_with_args: clang-tidy-cache clang-tidy-15 -p build --quiet --warnings-as-errors=*
clazy:
name: clazy
runs-on: ubuntu-22.04
steps:
- name: Clone the repository
uses: actions/checkout@v4
with:
submodules: true
- name: Run clazy
uses: ./.github/actions/run-linter
with:
lint_program_with_args: clang-tidy-cache clazy-standalone -p build --checks=level1,no-fully-qualified-moc-types,no-non-pod-global-static