From 87990a638c3e79e0978e1eec9ffb4322e8f72767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Palmer?= Date: Thu, 29 Feb 2024 09:35:06 +0100 Subject: [PATCH] SQUASH: use smay1613/clang-tidy-action --- .github/workflows/cppcheck.yml | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml index e51c3a78..1f138689 100644 --- a/.github/workflows/cppcheck.yml +++ b/.github/workflows/cppcheck.yml @@ -1,26 +1,12 @@ -name: cppcheck-action-test -on: [push] +name: c-linter +on: [pull_request] jobs: - build: - name: cppcheck-test + c-linter: + name: c-linter runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - name: cppcheck - uses: deep5050/cppcheck-action@main - with: - github_token: ${{ secrets.GITHUB_TOKEN}} - - - name: Print current branch - run: echo "Current branch is ${{ github.ref }}" - - - name: Print current branch - run: echo "Current branch is ${GITHUB_REF#refs/heads/}" - - - name: publish report - uses: mikeal/publish-to-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH_NAME: ${GITHUB_REF#refs/heads/} + - name: c-linter + uses: smay1613/clang-tidy-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}