1name: Style 2 3on: 4 push: 5 branches: 6 - main 7 pull_request: 8 9jobs: 10 test: 11 strategy: 12 matrix: 13 os: [ubuntu-22.04] 14 compiler: [clang] 15 16 runs-on: ${{ matrix.os }} 17 18 steps: 19 - name: Environment setup 20 uses: actions/checkout@v3 21 - name: Install clang-format 22 run: sudo apt install clang-format-15 23 - name: C style 24 env: 25 CC: ${{ matrix.compiler }} 26 FC: gfortran-11 27 run: | 28 make info 29 make format-c -j2 CLANG_FORMAT=clang-format-15 && git diff --exit-code 30