From 6069723e5a2749114ae5dc89296b8d40848a0a6e Mon Sep 17 00:00:00 2001 From: Ewan Miller Date: Wed, 24 Jul 2024 23:52:31 +0100 Subject: [PATCH] add cpp-linter action --- .github/workflows/cpp-linter.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/cpp-linter.yaml diff --git a/.github/workflows/cpp-linter.yaml b/.github/workflows/cpp-linter.yaml new file mode 100644 index 0000000..9cc1c86 --- /dev/null +++ b/.github/workflows/cpp-linter.yaml @@ -0,0 +1,29 @@ +name: cpp-linter + +on: + pull_request: + branches: [ "main" ] + workflow_dispatch: + + +jobs: + cpp-linter: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: cpp-linter/cpp-linter-action@main + id: linter + continue-on-error: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + style: file + files-changed-only: false + thread-comments: false + + - name: Fail fast?! + if: steps.linter.outputs.checks-failed != 0 + run: | + echo "some linter checks failed. ${{ steps.linter.outputs.checks-failed }}" + # for actual deployment + # run: exit 1