Skip to content

add cpp linter (clang-tidy) workflow #41

add cpp linter (clang-tidy) workflow

add cpp linter (clang-tidy) workflow #41

Workflow file for this run

name: pre-commit
on:
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
with:
# requites to grab the history of the PR
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: '3.11'
- uses: pre-commit/[email protected]
with:
extra_args: --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}