Support clang format and format almost all C++ code #5
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: code format | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
cpp-linter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cpp-linter/cpp-linter-action@v2 | |
id: linter | |
with: | |
style: file | |
tidy-checks: '-*' # disable clang tidy at this stage | |
- name: Fail test | |
if: steps.linter.outputs.checks-failed > 0 | |
run: echo "Some files failed the linting checks!" && exit 1 |