ci: Add clang-format lint check #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |