Skip to content

Change a file

Change a file #13

Workflow file for this run

# Run code style tests
name: Code Style
on:
on:

Check failure on line 6 in .github/workflows/lint.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/lint.yaml

Invalid workflow file

You have an error in your yaml syntax on line 6
pull_request:
branches: [main, master]
paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '*.pro']
push:
branches: [main, master]
paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '*.pro']
jobs:
clang-tidy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
ignore: "build|plugins|fft|qwt|ui_tmp|unit_test|pythonqt"
ignore-format: "build|plugins|fft|qwt|ui_tmp|unit_test|pythonqt"
thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}
- name: Failure
if: steps.linter.outputs.checks-failed > 0
run: exit 1