neon-sprawl/.github/workflows/gdscript.yml

34 lines
722 B
YAML

# Lint and format-check GDScript (Godot 4). Uses gdtoolkit: https://github.com/Scony/godot-gdscript-toolkit
name: GDScript
on:
push:
branches: [main]
paths:
- "client/**/*.gd"
- ".github/workflows/gdscript.yml"
pull_request:
branches: [main]
paths:
- "client/**/*.gd"
- ".github/workflows/gdscript.yml"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install gdtoolkit
run: pip install "gdtoolkit==4.5.0"
- name: gdlint
run: gdlint client/
- name: gdformat (check only)
run: gdformat --check client/