mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
gha: Use clang-format 10
This commit is contained in:
parent
b778a3c973
commit
d7e7498e9a
12
.github/workflows/clang-format.yml
vendored
12
.github/workflows/clang-format.yml
vendored
@ -4,22 +4,22 @@ on: [push]
|
||||
|
||||
jobs:
|
||||
clang-format-job:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Install clang-format 6.0
|
||||
- name: Install clang-format 10.0
|
||||
run: |
|
||||
sudo apt install clang-format-6.0
|
||||
clang-format-6.0 --version
|
||||
sudo apt install clang-format
|
||||
clang-format --version
|
||||
- uses: actions/checkout@v2
|
||||
- name: Check format - ApplicationCode
|
||||
run: |
|
||||
cd ApplicationCode
|
||||
find -name *.h -o -name *.cpp -o -name *.inl | xargs clang-format-6.0 -i
|
||||
find -name *.h -o -name *.cpp -o -name *.inl | xargs clang-format -i
|
||||
git diff
|
||||
- name: Check format - AppFwk
|
||||
run: |
|
||||
cd Fwk/AppFwk
|
||||
find -name *.h -o -name *.cpp -o -name *.inl | grep -v gtest | xargs clang-format-6.0 -i
|
||||
find -name *.h -o -name *.cpp -o -name *.inl | grep -v gtest | xargs clang-format -i
|
||||
git diff
|
||||
- uses: peter-evans/create-pull-request@v2
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user