2020-09-05 05:36:52 +08:00
|
|
|
name: clang-format Check
|
2021-03-11 22:28:55 +08:00
|
|
|
on:
|
|
|
|
pull_request:
|
2023-05-19 05:08:10 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2020-09-05 05:36:52 +08:00
|
|
|
jobs:
|
|
|
|
formatting-check:
|
|
|
|
name: Formatting Check
|
|
|
|
runs-on: ubuntu-latest
|
2020-10-02 23:19:27 +08:00
|
|
|
if: "!contains(github.event.head_commit.message, 'skip-ci')"
|
2020-09-05 05:36:52 +08:00
|
|
|
steps:
|
2023-12-14 04:02:24 +08:00
|
|
|
- uses: actions/checkout@v4.1.1
|
2023-03-14 15:57:38 +08:00
|
|
|
- name: Run clang-format style check for C and Java code
|
2022-07-27 05:45:46 +08:00
|
|
|
uses: DoozyX/clang-format-lint-action@v0.13
|
2020-09-05 05:36:52 +08:00
|
|
|
with:
|
|
|
|
source: '.'
|
2022-04-20 02:08:09 +08:00
|
|
|
extensions: 'c,h,cpp,hpp,java'
|
2022-07-27 05:45:46 +08:00
|
|
|
clangFormatVersion: 13
|
2020-09-05 05:36:52 +08:00
|
|
|
style: file
|
2020-11-20 10:54:00 +08:00
|
|
|
exclude: './config ./hl/src/H5LTanalyze.c ./hl/src/H5LTparse.c ./hl/src/H5LTparse.h ./src/H5Epubgen.h ./src/H5Einit.h ./src/H5Eterm.h ./src/H5Edefin.h ./src/H5version.h ./src/H5overflow.h'
|