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