Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ctor into main
  • Loading branch information
SS47816 committed Mar 20, 2024
2 parents 24c63cc + 8ac9305 commit f72078e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/cpp-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: cpp-linter

on: [push, pull_request]

jobs:
cpp-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cpp-linter/cpp-linter-action@main
id: linter
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: file # optional, default is llvm
tidy-checks: ''
files-changed-only: false
thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}

- name: Fail fast?!
if: steps.linter.outputs.checks-failed != 0
run: |
echo "some linter checks failed. ${{ steps.linter.outputs.checks-failed }}"
# for actual deployment
# run: exit 1

0 comments on commit f72078e

Please sign in to comment.