Skip to content

Commit

Permalink
STE32CubeIDEのサンプルプログラムの体裁チェックを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeKato committed Sep 19, 2024
1 parent e9092b1 commit 545b5bd
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,13 @@ jobs:
- run: sudo apt install -y clang-format zsh
- run: clang-format --dry-run -Werror Arduino_Sample/STEP*/*.ino
shell: zsh {0}
clang-format-stm32:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# 各ソースコードファイルに対してclang-formatによる整形が必要か判定する
# 正規表現を簡単にするためzshを使用する
- run: sudo apt install -y clang-format zsh
- run: clang-format --dry-run -Werror STM32CubeIDE_Sample/STEP*/*.c
- run: clang-format --dry-run -Werror STM32CubeIDE_file/STEP*/*.(c|h)
shell: zsh {0}
1 change: 1 addition & 0 deletions STM32CubeIDE_Sample/STEP2/.clang-format
1 change: 1 addition & 0 deletions STM32CubeIDE_Sample/STEP3/.clang-format
1 change: 1 addition & 0 deletions STM32CubeIDE_Sample/STEP4/.clang-format
1 change: 1 addition & 0 deletions STM32CubeIDE_Sample/STEP5/.clang-format
1 change: 1 addition & 0 deletions STM32CubeIDE_Sample/STEP6/.clang-format
1 change: 1 addition & 0 deletions STM32CubeIDE_Sample/STEP7/.clang-format
1 change: 1 addition & 0 deletions STM32CubeIDE_Sample/STEP8/.clang-format
1 change: 1 addition & 0 deletions STM32CubeIDE_file/.clang-format

0 comments on commit 545b5bd

Please sign in to comment.