Skip to content

Code formatting with clang-format #4

Code formatting with clang-format

Code formatting with clang-format #4

name: ensure-formatting
on:
pull_request:
jobs:
ensure-formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install clang format 15
run: |
sudo apt update
sudo apt install clang-format-15
- name: Test formatting for all files
working-directory: ${{ github.workspace }}
run: |
./scripts/check-format.sh