Skip to content

Commit

Permalink
Add clang format lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bungogood committed Sep 8, 2024
1 parent 969a5c5 commit a0a2aba
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BasedOnStyle: Google
IndentWidth: 4
19 changes: 15 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Build and Lint

on: [push]

Expand All @@ -7,19 +7,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- name: Checkout code
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"

- name: Install PlatformIO
run: pip install --upgrade platformio

- name: Lint
uses: jidicula/clang-format-action@v4.13.0

- name: Build
run: pio run

- name: Test native
run: pio test -e native

0 comments on commit a0a2aba

Please sign in to comment.