Skip to content

Commit b3766b7

Browse files
feat(lint): consolidate clang format linting workflow (#121)
1 parent bf6db83 commit b3766b7

File tree

3 files changed

+21
-65
lines changed

3 files changed

+21
-65
lines changed

.github/workflows/clang-format-check.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright (c) Brandon Pacewic
2+
# SPDX-License-Identifier: MIT
3+
4+
name: Lint
5+
on:
6+
pull_request:
7+
branches:
8+
- mega
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Code
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Check Formatting
19+
run: |
20+
find cpl/inc cpl/src tests/cpl -regex '.*\.\(cpp\|h\|hpp\)' -exec clang-format -i --style=file {} +
21+
git diff --exit-code || (echo 'Formatting issues found. Please run clang-format.' && exit 1)

tests/clang_format_test.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)