Perform GDScript format checks using pre-commit

This commit is contained in:
Leroy Hopson 2024-02-13 11:27:07 +13:00
parent 8f08945df2
commit aa2b93248e
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
4 changed files with 21 additions and 21 deletions

View file

@ -320,16 +320,9 @@ jobs:
exit 1
fi
check-code-format:
name: "Check Code Format"
check-pre-commit:
name: "Check Pre-Commit"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
cache: "pip"
- name: Install python dependencies
run: pip install -r requirements.txt
- name: GDScript format check
run: gdformat -c .
- uses: pre-commit/action@v3.0.1