Skip to content

Commit

Permalink
Merge pull request #28 from ewanwm/feature_cpp_linter
Browse files Browse the repository at this point in the history
add cpp-linter action
  • Loading branch information
ewanwm authored Jul 24, 2024
2 parents 91bc241 + 6069723 commit 665779a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cpp-linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: cpp-linter

on:
pull_request:
branches: [ "main" ]
workflow_dispatch:


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
files-changed-only: false
thread-comments: false

- 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 665779a

Please sign in to comment.