xref: /libCEED/.github/workflows/c-fortran-test-style.yml (revision 1b685ca38c19bbe9d56757cda5560a78321a56a8)
1name: 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