Skip to content

Merge pull request #48 from smithlabcode/clang-format #2

Merge pull request #48 from smithlabcode/clang-format

Merge pull request #48 from smithlabcode/clang-format #2

name: Source code format check
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install -y clang-format
- name: Run clang-format
run: |
git $(ls-files '*.*pp') | xargs clang-format -n -Werror