mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
Add Github workflow checking formatting
This commit is contained in:
parent
9197b537d7
commit
cc31a4a4b0
19
.github/workflows/ensure-formatting.yaml
vendored
Normal file
19
.github/workflows/ensure-formatting.yaml
vendored
Normal 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 ]]
|
Loading…
x
Reference in New Issue
Block a user