mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-05 16:20:22 +01:00
Add clang-tidy action
This commit is contained in:
parent
1f05a8a6a6
commit
c02498dd24
19
.github/workflows/lint.yml
vendored
Normal file
19
.github/workflows/lint.yml
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
name: Linting
|
||||
on:
|
||||
pull_request:
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: ZedThree/clang-tidy-review@v0.12.0
|
||||
id: review
|
||||
|
||||
# Uploads an artefact containing clang_fixes.json
|
||||
- uses: ZedThree/clang-tidy-review/upload@v0.12.0
|
||||
id: upload-review
|
||||
|
||||
# If there are any comments, fail the check
|
||||
- if: steps.review.outputs.total_comments > 0
|
||||
run: exit 1
|
||||
Loading…
Reference in a new issue