mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Added clang formatting spec and PR validation (#992)
* Update .clang-format
This commit is contained in:
parent
e694e73a75
commit
acc20844cd
7
.clang-format
Normal file
7
.clang-format
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
BasedOnStyle: Chromium
|
||||||
|
IndentWidth: '2'
|
||||||
|
TabWidth: '2'
|
||||||
|
UseTab: Always
|
||||||
|
|
||||||
|
...
|
18
.github/workflows/check_formatting.yml
vendored
Normal file
18
.github/workflows/check_formatting.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: Check formatting
|
||||||
|
|
||||||
|
on: #[push, pull_request] To be enabled once formatting is fixed in repo
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check_date:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Check formatting
|
||||||
|
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:
|
||||||
|
check-path: "firmware"
|
||||||
|
fallback-style: Chromium
|
Loading…
Reference in New Issue
Block a user