xref: /libCEED/.github/workflows/c-fortran-test-style.yml (revision 3446d1b5ce8d1a4e72ebab9baee4f1efd0361227)
1name: C/Fortran - Style
2
3on:
4  push:
5
6jobs:
7  test:
8    strategy:
9      matrix:
10        os: [ubuntu-latest]
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