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