Add style check to workflow (#2062)

* Add style check to workflow

* Add example files to style check
This commit is contained in:
Florian Albrechtskirchinger 2025-02-17 18:14:53 +01:00 committed by GitHub
parent 2996cecee0
commit 574f5ce93e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 39 additions and 0 deletions

View file

@ -24,6 +24,18 @@ env:
GTEST_FILTER: ${{ github.event.inputs.gtest_filter || '*' }}
jobs:
style-check:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
continue-on-error: true
steps:
- name: checkout
uses: actions/checkout@v4
- name: run style check
run: |
clang-format --version
cd test && make style_check
ubuntu:
runs-on: ubuntu-latest
if: >