name: test-clang-format

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v4
    - uses: DoozyX/clang-format-lint-action@v0.18
      with:
        source: 
          'app/ highs/Highs.h ./highs/lp_data ./highs/mip ./highs/model ./highs/simplex ./highs/presolve  ./highs/simplex ./highs/util ./highs/test_kkt ./highs/qpsolver'
        # ./highs/test_kkt ./interfaces'
        extensions: 'h,cpp,c'
        clangFormatVersion: 18
