Add Github workflow checking formatting

This commit is contained in:
Jan 2023-10-02 23:12:42 +02:00
parent 9197b537d7
commit cc31a4a4b0
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C

View File

@ -0,0 +1,19 @@
name: ensure-formatting
on:
pull_request:
jobs:
ensure-formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Test formatting for all files
working-directory: ${{ github.workspace }}
run: |
./scripts/reformat-all.sh
[[ $(git status --porcelain | wc -l) == 0 ]]