mirror of https://github.com/nextcloud/desktop
only test format on changed files and changed lines
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
44eb234469
commit
57e4053216
|
@ -4,12 +4,17 @@ on:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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:
|
with:
|
||||||
source: '.'
|
style: file
|
||||||
extensions: 'h,cpp,c'
|
lines-changed-only: true
|
||||||
clangFormatVersion: 14
|
version: 14
|
||||||
|
- name: Fail fast?!
|
||||||
|
if: steps.linter.outputs.checks-failed > 0
|
||||||
|
run: echo "Some files failed the linting checks!"
|
||||||
|
|
Loading…
Reference in New Issue