Complete the low-level wrapper of all used HDF5 functions. #723
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ClangFormat | |
concurrency: | |
group: ${{ github.workflow }}#${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
- '**.rst' | |
- 'doc/**' | |
jobs: | |
Code_Format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run clang-format | |
run: | | |
clang-format --version | |
for i in $(git ls-files | grep ".[ch]pp$"); | |
do | |
clang-format -i "$i" > /dev/null 2>&1; | |
done | |
modified_files=$(git diff --name-only) | |
if [ -n "$modified_files" ]; | |
then | |
echo "Some files are not well formatted:" | |
echo $modified_files | |
echo "" | |
echo "The diff is:" | |
git diff | |
exit 1 | |
fi |