Skip to content

ci: Add clang-format lint check #1

ci: Add clang-format lint check

ci: Add clang-format lint check #1

Workflow file for this run

name: Lint
on:
push:
paths-ignore:
- '.github/**'
- '!.github/workflows/lint.yml'
- 'README.md'
- 'ubuntu-win64-cross/**'
pull_request:
paths-ignore:
- '.github/**'
- '!.github/workflows/lint.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