Skip to content

Commit

Permalink
feat: update ci for clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
wiryls committed Nov 14, 2023
1 parent 5d9967a commit 2e868f7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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

0 comments on commit 2e868f7

Please sign in to comment.