Skip to content

Commit

Permalink
let's try an all-in-one solution
Browse files Browse the repository at this point in the history
  • Loading branch information
dmah42 committed Feb 11, 2025
1 parent 05d0264 commit f5e620b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 56 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/clang-format-lint.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/clang-tidy.yml

This file was deleted.

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:
job:
name: run-clang-tidy
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: cpp-linter/cpp-linter-action@v2
id: linter
with:
style: 'file'
tidy-checks: ''
extensions: 'c,h,cc'
- name: fail fast format
if: steps.linter.outputs.checks-failed > 0
run: exit 1
- name: fail fast tidy
if: steps.linter.outputs.clang-tidy-checks-failed > 0
run: exit 1

0 comments on commit f5e620b

Please sign in to comment.