Skip to content

Commit

Permalink
only test format on changed files and changed lines
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien committed Oct 4, 2022
1 parent 44eb234 commit 57e4053
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ on:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest

runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: DoozyX/[email protected]
- uses: cpp-linter/[email protected]
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
source: '.'
extensions: 'h,cpp,c'
clangFormatVersion: 14
style: file
lines-changed-only: true
version: 14
- name: Fail fast?!
if: steps.linter.outputs.checks-failed > 0
run: echo "Some files failed the linting checks!"

0 comments on commit 57e4053

Please sign in to comment.