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 <matthieu.gallien@nextcloud.com>
  • Loading branch information
mgallien committed Oct 4, 2022
1 parent 30cf375 commit 6f7748b
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/clang-format-lint-action@v0.14
- uses: cpp-linter/cpp-linter-action@v2.1.1
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 6f7748b

Please sign in to comment.