Skip to content

Commit

Permalink
check for lint failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dhinakg committed Aug 5, 2023
1 parent 1cbea51 commit 1090e80
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: cpp-linter/cpp-linter-action@v2
id: linter
with:
style: file
extensions: 'c,h,m,C,H,cpp,mm,hpp,cc,hh,c++,h++,cxx,hxx'
Expand All @@ -22,3 +23,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check for lint failure
if: steps.linter.outputs.checks-failed > 0
run: |
echo "::error::Code style check failed."
exit 1

1 comment on commit 1090e80

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-format reports: 49 file(s) not formatted
  • SkyLight/Backlight.m

Have any feedback or feature suggestions? Share it here.

Please sign in to comment.