Add action

This commit is contained in:
Stefano Calabretti
2022-02-20 12:32:50 +01:00
parent e60941fbdf
commit 8071324063
+19
View File
@@ -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