| 1 | name: style |
| 2 | |
| 3 | permissions: |
| 4 | contents: read |
| 5 | |
| 6 | on: [push, pull_request] |
| 7 | |
| 8 | jobs: |
| 9 | style-check: |
| 10 | runs-on: ubuntu-22.04 |
| 11 | steps: |
| 12 | - name: 'Checkout' |
| 13 | uses: actions/checkout@v6 |
| 14 | - name: 'Install prerequisites' |
| 15 | run: | |
| 16 | sudo apt-get update |
| 17 | sudo apt-get install -y \ |
| 18 | astyle |
| 19 | - name: 'Check for style changes' |
| 20 | run: ./style_unify && .github/workflows/style.sh |
| 21 |