Add job to check GDScript format

This commit is contained in:
Leroy Hopson 2022-04-23 15:49:39 +07:00
parent 4a24c762a9
commit 26871a07ac
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
3 changed files with 17 additions and 0 deletions

1
.gitattributes vendored
View file

@ -32,5 +32,6 @@
/misc export-ignore
/project.godot export-ignore
/README.md export-ignore
/requirements.txt export-ignore
/test export-ignore
/themes export-ignore

View file

@ -311,3 +311,15 @@ jobs:
exit 1
fi
check-code-format:
name: 'Check Code Format'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- name: GDFormat Check
run: |
python -m pip install -r requirements.txt
gdformat -c .

4
requirements.txt Normal file
View file

@ -0,0 +1,4 @@
docopt==0.6.2
gdtoolkit==3.3.1
lark-parser==0.8.0
PyYAML==6.0