Skip to content

Commit

Permalink
Create cpp-linter.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SS47816 authored Mar 20, 2024
1 parent 8fa1c35 commit 8ac9305
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 8ac9305

Please sign in to comment.