Skip to content

Commit

Permalink
use pre-release as action
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Nov 26, 2024
1 parent 574be43 commit af1e068
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/cpp-lint-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: cpp-linter as action
on:
workflow_dispatch:
workflow_call:
pull_request:


jobs:
Expand Down Expand Up @@ -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 }}
Expand All @@ -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?!
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cpp-lint-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
description: 'which branch to test'
default: 'main'
required: true
pull_request:
# pull_request:

jobs:
cpp-linter:
Expand Down

0 comments on commit af1e068

Please sign in to comment.