Skip to content

build(ci): Add clang-tidy configuration file for better support with … #1

build(ci): Add clang-tidy configuration file for better support with …

build(ci): Add clang-tidy configuration file for better support with … #1

Workflow file for this run

name: C/C++ CI
on: [push, pull_request]
jobs:
lint:
name: Format and Lint
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: checkout
uses: actions/checkout@v4
- name: Run linter
uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: 'file'
tidy-checks: 'file'
tidy-review: true
version: '18'
- name: Check linter errors
if: steps.linter.outputs.clang-tidy-checks-failed > 0
run: exit 1
- name: Check format errors
if: steps.linter.outputs.clang-format-checks-failed > 0
run: exit 1
make:
name: Compile Project
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: make
run: make