2023-05-14 19:53:13 -04:00
|
|
|
name: Check formatting
|
|
|
|
|
2023-05-19 15:14:19 -04:00
|
|
|
on: [pull_request]
|
2023-05-14 19:53:13 -04:00
|
|
|
|
2023-05-18 16:16:05 -04:00
|
|
|
jobs:
|
2023-05-14 19:53:13 -04:00
|
|
|
check_date:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Check formatting
|
2023-05-18 16:16:05 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
path:
|
|
|
|
- "firmware/common"
|
|
|
|
- "firmware/application"
|
|
|
|
- "firmware/baseband"
|
2023-05-14 19:53:13 -04: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 16:16:05 -04:00
|
|
|
check-path: ${{ matrix.path }}
|
2023-05-14 19:53:13 -04:00
|
|
|
fallback-style: Chromium
|