Skip to content

fix C++ lint with clang-tidy, improve windows user experience #10

fix C++ lint with clang-tidy, improve windows user experience

fix C++ lint with clang-tidy, improve windows user experience #10

Workflow file for this run

name: pre-commit
on:
pull_request:
branches:
- master
- trt10
push:
branches:
- master
- trt10
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
# grab the history of the PR
fetch-depth: 0
- uses: actions/setup-python@v3
- name: pre-commit (PR diff)
if: github.event_name == 'pull_request'
uses: pre-commit/action@v3.0.1
with:
extra_args: >
--from-ref ${{ github.event.pull_request.base.sha }}
--to-ref ${{ github.event.pull_request.head.sha }}
--show-diff-on-failure --color=always
# push 检查
- name: pre-commit (push diff)
if: github.event_name == 'push'
uses: pre-commit/action@v3.0.1
with:
extra_args: >
--from-ref ${{ github.event.before }}
--to-ref ${{ github.sha }}
--show-diff-on-failure --color=always