Skip to content

Commit

Permalink
[ci] Add cpplint github action
Browse files Browse the repository at this point in the history
Signed-off-by: czm <[email protected]>
  • Loading branch information
czm23333 committed Sep 2, 2023
1 parent 9a8b023 commit 6c95d8c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
name: cppcheck-action
on: [push]
on: [push, pull_request]

jobs:
build:
name: cppcheck-test
cppcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: cppcheck
uses: deep5050/cppcheck-action@main


- name: publish report
uses: actions/upload-artifact@v3
- uses: actions/checkout@v3
- uses: deep5050/cppcheck-action@main
- uses: actions/upload-artifact@v3
with:
name: cppcheck
path: cppcheck_report.txt
17 changes: 17 additions & 0 deletions .github/workflows/cpplint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: cpplint-action
on: [push, pull_request]

jobs:
cpplint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: pip install cpplint
- run: cpplint --recursive . > cpplint_report.txt 2>&1
continue-on-error: true
- uses: actions/upload-artifact@v3
with:
name: cpplint
path: cpplint_report.txt

0 comments on commit 6c95d8c

Please sign in to comment.