Add linting (#5)
* Add format file * Add action
This commit was merged in pull request #5.
This commit is contained in:
committed by
GitHub
parent
37a47f4948
commit
7aa61ed9ad
@@ -0,0 +1,19 @@
|
||||
name: cpp-linting
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
cpp-linter:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: shenxianpeng/cpp-linter-action@master
|
||||
id: linter
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
style: file
|
||||
|
||||
- name: Result
|
||||
if: steps.linter.outputs.checks-failed > 0
|
||||
run: exit 1
|
||||
Reference in New Issue
Block a user