mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
ci: Add github-action that automatically runs clang-format. Will not fail CI (#4387)
Signed-off-by: pasta <pasta@dashboost.org>
This commit is contained in:
parent
03d6db5eae
commit
20eb13616a
17
.github/workflows/clang-diff-format.yml
vendored
Normal file
17
.github/workflows/clang-diff-format.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: Clang Diff Format Check
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
jobs:
|
||||||
|
ClangFormat:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Fetch git
|
||||||
|
run: git fetch
|
||||||
|
- name: Run Clang-Format-Diff.py
|
||||||
|
run: git diff -U0 origin/develop | ./contrib/devtools/clang-format-diff.py -p1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user