diff --git a/.github/workflows/ensure-formatting.yaml b/.github/workflows/ensure-formatting.yaml new file mode 100644 index 00000000..8d306d1c --- /dev/null +++ b/.github/workflows/ensure-formatting.yaml @@ -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 ]] \ No newline at end of file