From a368b3db5be58af77158e909b3daa6eb1db37aaf Mon Sep 17 00:00:00 2001 From: Benedikt Galbavy Date: Mon, 27 May 2024 12:29:51 +0200 Subject: [PATCH] linter action first test due to how actions work this will spam commits --- .github/workflows/cpp-linter.yaml | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 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..6c4a524 --- /dev/null +++ b/.github/workflows/cpp-linter.yaml @@ -0,0 +1,37 @@ +on: + push: + paths: + - "docs/examples/demo/*" + pull_request: + paths: + - "docs/examples/demo/*" + + permissions: + pull-requests: write + metadata: read + contents: write + +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' + tidy-checks: '' + files-changed-only: false + thread-comments: false #${{ github.event_name == 'pull_request' && 'update' }} + tidy-review: true + format-review: true + + - 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 \ No newline at end of file