Skip to content

Commit 62f49dc

Browse files
authored
Merge pull request #3 from Mousius/clang-tidy
Add cpp-linter action
2 parents 7dbd9b6 + b731161 commit 62f49dc

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BasedOnStyle: Google

.github/workflows/cpp-linter.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: cpp-linter
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- "npsr/*"
9+
10+
jobs:
11+
cpp-linter:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
15+
- uses: cpp-linter/cpp-linter-action@f91c446a32ae3eb9f98fef8c9ed4c7cb613a4f8a
16+
id: linter
17+
continue-on-error: true
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
style: "file"
22+
23+
- name: Linter Outputs
24+
if: steps.linter.outputs.checks-failed != 0
25+
run: exit 1

0 commit comments

Comments
 (0)