mirror of
https://github.com/m5stack/M5HAL.git
synced 2026-05-20 11:27:38 -07:00
Some tweaks
This commit is contained in:
@@ -12,7 +12,15 @@ on:
|
||||
- '**.h'
|
||||
- '**.c'
|
||||
- '**.inl'
|
||||
- '**clang-format-check.yml'
|
||||
pull_request:
|
||||
- '**.ino'
|
||||
- '**.cpp'
|
||||
- '**.hpp'
|
||||
- '**.h'
|
||||
- '**.c'
|
||||
- '**.inl'
|
||||
- '**clang-format-check.yml'
|
||||
|
||||
jobs:
|
||||
formatting-check:
|
||||
@@ -23,16 +31,21 @@ jobs:
|
||||
path:
|
||||
#- check: './' # path to include
|
||||
# exclude: '' # path to exclude
|
||||
- check: 'src'
|
||||
# exclude: '(Fonts)' # Exclude file paths containing "Fonts"
|
||||
# - check: 'examples'
|
||||
# exclude: ''
|
||||
- check: 'src'
|
||||
- check: 'test'
|
||||
- check: 'examples'
|
||||
# exclude: '(Fonts)' # Exclude file paths containing "Fonts"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3.1.0
|
||||
- name: Run clang-format style check for C/C++/Protobuf programs.
|
||||
uses: jidicula/clang-format-action@v4.11.0
|
||||
with:
|
||||
clang-format-version: '13'
|
||||
check-path: ${{ matrix.path['check'] }}
|
||||
exclude-regex: ${{ matrix.path['exclude'] }}
|
||||
include-regex: ${{ env.INCLUDE_REGEX }}
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Run clang-format style check for C/C++/Protobuf programs.
|
||||
uses: jidicula/clang-format-action@v4.10.2 # Using include-regex 10.x or later
|
||||
with:
|
||||
clang-format-version: '13'
|
||||
check-path: ${{ matrix.path['check'] }}
|
||||
exclude-regex: ${{ matrix.path['exclude'] }}
|
||||
include-regex: ${{ env.INCLUDE_REGEX }}
|
||||
|
||||
Reference in New Issue
Block a user