From af1e06840af414fee99ab6fb189f0075b5913172 Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Tue, 26 Nov 2024 13:35:16 -0800 Subject: [PATCH] use pre-release as action --- .github/workflows/cpp-lint-action.yml | 9 ++++++--- .github/workflows/cpp-lint-package.yml | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cpp-lint-action.yml b/.github/workflows/cpp-lint-action.yml index ce38730..2feb93c 100644 --- a/.github/workflows/cpp-lint-action.yml +++ b/.github/workflows/cpp-lint-action.yml @@ -3,6 +3,7 @@ name: cpp-linter as action on: workflow_dispatch: workflow_call: + pull_request: jobs: @@ -32,7 +33,7 @@ jobs: run: mkdir build && cmake -Bbuild src - name: Run linter as action - uses: cpp-linter/cpp-linter-action@latest + uses: cpp-linter/cpp-linter-action@v3 id: linter env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -44,8 +45,10 @@ jobs: database: build verbosity: 9 version: ${{ matrix.clang-version }} - thread-comments: ${{ matrix.clang-version == '12' }} - file-annotations: ${{ matrix.clang-version == '12' }} + thread-comments: ${{ matrix.clang-version == '17' && 'update' }} + file-annotations: ${{ matrix.clang-version == '17' }} + tidy-review: ${{ matrix.clang-version == '17' }} + format-review: ${{ matrix.clang-version == '17' }} extra-args: -std=c++14 -Wall - name: Fail fast?! diff --git a/.github/workflows/cpp-lint-package.yml b/.github/workflows/cpp-lint-package.yml index e30c6f7..dd07f8e 100644 --- a/.github/workflows/cpp-lint-package.yml +++ b/.github/workflows/cpp-lint-package.yml @@ -7,7 +7,7 @@ on: description: 'which branch to test' default: 'main' required: true - pull_request: + # pull_request: jobs: cpp-linter: