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