Skip to content

Commit

Permalink
lint.yamlを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeKato committed Nov 10, 2023
1 parent 2ef1aea commit c94c9ab
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint

on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:

jobs:
arduino-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: arduino/arduino-lint-action@v1
with:
recursive: true
compliance: specification
clang-format:
needs: arduino-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# 各スケッチファイルの.ino、.hファイルに対してclang-formatによる整形が必要か判定する
# 正規表現を簡単にするためzshを使用する
- run: sudo apt install -y clang-format zsh
- run: clang-format --dry-run -Werror uROS_STEP*/*.(ino|h)
shell: zsh {0}

0 comments on commit c94c9ab

Please sign in to comment.