File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: cpp-linter as action
3
3
on :
4
4
workflow_dispatch :
5
5
workflow_call :
6
+ pull_request :
6
7
7
8
8
9
jobs :
@@ -32,27 +33,27 @@ jobs:
32
33
run : mkdir build && cmake -Bbuild src
33
34
34
35
- name : Run linter as action
35
- uses : cpp-linter/cpp-linter-action@latest
36
+ uses : cpp-linter/cpp-linter-action@opt-in-color
36
37
id : linter
37
38
env :
38
39
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
+ CPP_LINTER_COLOR : true
39
41
with :
40
42
style : file
41
43
files-changed-only : false
42
44
# to ignore all build folder contents
43
45
ignore : build
44
46
database : build
45
- verbosity : 9
47
+ verbosity : debug
46
48
version : ${{ matrix.clang-version }}
47
- thread-comments : ${{ matrix.clang-version == '12 ' }}
48
- file-annotations : ${{ matrix.clang-version == '12 ' }}
49
+ thread-comments : ${{ matrix.clang-version == '16' && 'update ' }}
50
+ file-annotations : ${{ matrix.clang-version == '16' && 'update ' }}
49
51
extra-args : -std=c++14 -Wall
50
52
51
53
- name : Fail fast?!
52
54
# if: steps.linter.outputs.checks-failed > 0
53
55
run : |
54
56
echo "some linter checks failed"
55
57
echo "${{ steps.linter.outputs.checks-failed }}"
56
- echo "${{ env.checks-failed }}"
57
58
# for actual deployment
58
59
# run: exit 1
You can’t perform that action at this time.
0 commit comments