2023-05-14 23:53:13 +00:00
|
|
|
name: Check formatting
|
|
|
|
|
2023-05-18 20:16:05 +00:00
|
|
|
on: [push, pull_request]
|
2023-05-14 23:53:13 +00:00
|
|
|
|
2023-05-18 20:16:05 +00:00
|
|
|
jobs:
|
2023-05-14 23:53:13 +00:00
|
|
|
check_date:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Check formatting
|
2023-05-18 20:16:05 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
path:
|
|
|
|
- "firmware/common"
|
|
|
|
- "firmware/application"
|
|
|
|
- "firmware/baseband"
|
2023-05-14 23:53:13 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: print latest_commit
|
|
|
|
run: echo ${{ github.sha }}
|
|
|
|
- name: clang-format Check
|
|
|
|
uses: jidicula/clang-format-action@v4.11.0
|
|
|
|
with:
|
2023-05-18 20:16:05 +00:00
|
|
|
check-path: ${{ matrix.path }}
|
2023-05-14 23:53:13 +00:00
|
|
|
fallback-style: Chromium
|