Skip to content

Merge pull request #265 from QuTech-Delft/fix-upload-and-tag-as-git-t… #4

Merge pull request #265 from QuTech-Delft/fix-upload-and-tag-as-git-t…

Merge pull request #265 from QuTech-Delft/fix-upload-and-tag-as-git-t… #4

Workflow file for this run

name: Linters
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
cpp-linters:
name: "C++ linters"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run C++ linters
uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
extensions: 'cpp,hpp'
style: 'file' # use .clang-format config file
tidy-checks: '-*' # disable clang-tidy checks
version: 18
- name: Fail fast
if: steps.linter.outputs.clang-format-checks-failed > 0
run: |
echo "::notice::Try executing 'python3 ./scripts/run_cpp_linters.py .' to fix linter issues."
exit 1