Skip to content

Commit

Permalink
Add Github workflow checking formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Laupetin committed Oct 2, 2023
1 parent f885a1b commit 55d0a83
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ensure-formatting.yaml
Original file line number Diff line number Diff line change
@@ -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 ]]

0 comments on commit 55d0a83

Please sign in to comment.