forked from google/flatbuffers
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 937 Bytes
/
cpp-linter.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
name: cpp-linter
permissions: read-all
on:
pull_request:
branches:
- master
paths-ignore: "tests/**"
jobs:
cpp-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: cmake
run: CXX=clang++-12 cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release .
- uses: shenxianpeng/cpp-linter-action@master
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: 12
style: file
lines-changed-only: true
tidy-checks: >-
bugprone-*,
performance-*,
readability-*,
portability-*,
modernize-*,
clang-analyzer-*,
cppcoreguidelines-*,
-modernize-use-trailing-return-type
- name: Check Result
if: steps.linter.outputs.checks-failed > 0
run: |
echo "Failed linting."