From 8071324063850b21fccbe3907b873909d52f3107 Mon Sep 17 00:00:00 2001 From: Stefano Calabretti Date: Sun, 20 Feb 2022 12:32:50 +0100 Subject: [PATCH] Add action --- .github/workflows/cpp-linting.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/cpp-linting.yml diff --git a/.github/workflows/cpp-linting.yml b/.github/workflows/cpp-linting.yml new file mode 100644 index 0000000..27a3a9f --- /dev/null +++ b/.github/workflows/cpp-linting.yml @@ -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 \ No newline at end of file