Skip to content

Commit

Permalink
experimenting with linter
Browse files Browse the repository at this point in the history
  • Loading branch information
TysonRayJones authored Mar 5, 2025
1 parent 69c78f5 commit 6adaa1d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: lint


on:
push:
branches:
- linter
pull_request:
branches:
- linter

jobs:
run-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
extensions: 'c,h,cpp,hpp,cu,cuh'
thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}
- name: fail if code stinky
if: steps.linter.outputs.checks-failed > 0
run: exit 1

0 comments on commit 6adaa1d

Please sign in to comment.