Skip to content

Commit f300975

Browse files
committed
test colored logs
1 parent 734416c commit f300975

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/cpp-lint-action.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: cpp-linter as action
33
on:
44
workflow_dispatch:
55
workflow_call:
6+
pull_request:
67

78

89
jobs:
@@ -32,27 +33,27 @@ jobs:
3233
run: mkdir build && cmake -Bbuild src
3334

3435
- name: Run linter as action
35-
uses: cpp-linter/cpp-linter-action@latest
36+
uses: cpp-linter/cpp-linter-action@opt-in-color
3637
id: linter
3738
env:
3839
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
CPP_LINTER_COLOR: true
3941
with:
4042
style: file
4143
files-changed-only: false
4244
# to ignore all build folder contents
4345
ignore: build
4446
database: build
45-
verbosity: 9
47+
verbosity: debug
4648
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' }}
4951
extra-args: -std=c++14 -Wall
5052

5153
- name: Fail fast?!
5254
# if: steps.linter.outputs.checks-failed > 0
5355
run: |
5456
echo "some linter checks failed"
5557
echo "${{ steps.linter.outputs.checks-failed }}"
56-
echo "${{ env.checks-failed }}"
5758
# for actual deployment
5859
# run: exit 1

0 commit comments

Comments
 (0)