Skip to content

Commit

Permalink
ci: Add clang-format lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
antangelo committed Jul 29, 2023
1 parent 16dd084 commit 0c73c9d
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Lint

on:
push:
paths-ignore:
- '.github/**'
- '!.github/workflows/build.yml'
- 'README.md'
- 'ubuntu-win64-cross/**'
pull_request:
paths-ignore:
- '.github/**'
- '!.github/workflows/build.yml'
- 'README.md'
- 'ubuntu-win64-cross/**'

jobs:
Check:
name: Check formatting and lints
runs-on: ubuntu-latest
steps:
- name: Clone tree
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check formatting/lints
uses: cpp-linter/[email protected]
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: '16'
style: file
lines-changed-only: true
thread-comments: true
- name: Report result
if: steps.linter.outputs.checks-failed > 0
run: exit 1

0 comments on commit 0c73c9d

Please sign in to comment.