Skip to content

Commit

Permalink
format check test added
Browse files Browse the repository at this point in the history
  • Loading branch information
zoeprieto committed Oct 7, 2024
1 parent f06ba7d commit a6fb63a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ jobs:
- name: Install tox
run: pip install tox tox-gh-actions
- name: Test with tox
run: tox -r -c python
run: tox -r -c python
32 changes: 32 additions & 0 deletions .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: C Format Check

on:
# allow workflow to be run manually
workflow_dispatch:

pull_request:
branches:
- develop
- master

jobs:
cpp-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: file
files-changed-only: true
tidy-checks: '-*'
version: '15' # clang-format version
file-annotations: true
step-summary: true
extensions: 'c,h'

- name: Failure Check
if: steps.linter.outputs.checks-failed > 0
run: echo "Some files failed the formatting check! See job summary and file annotations for more info" && exit 1

0 comments on commit a6fb63a

Please sign in to comment.