-
-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (39 loc) · 1.47 KB
/
gdscript-style.yml
File metadata and controls
47 lines (39 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# © 2026-present https://github.com/cengiz-pz
#
name: GDScript Code Style
on:
pull_request:
branches:
- main
paths:
- 'addon/src/**/*.gd'
- 'demo/**/*.gd'
jobs:
gdscript-style:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install gdtoolkit
run: |
python3 -m venv /opt/gdtoolkit
/opt/gdtoolkit/bin/pip install gdtoolkit
echo "/opt/gdtoolkit/bin" >> $GITHUB_PATH
/opt/gdtoolkit/bin/gdformat --version
- name: Verify Formatting
run: |
cp .github/config/.gdformatrc .gdformatrc
echo "Checking GDScript formatting in addon directory..."
find addon/src -type f -name "*.gd" ! -name "*Plugin.gd" | xargs gdformat --check
echo "Checking GDScript formatting in demo directory..."
find demo -type f -name "*.gd" -not -path "demo/addons/*" | xargs gdformat --check
- name: Install editorconfig-checker
uses: ./.github/actions/install-ec
- name: Verify EditorConfig (Final Newline & Trailing Space)
run: |
cp .github/config/.gdformatrc .gdformatrc
echo "Running EditorConfig verification in addon directory..."
find addon/src -type f -name "*.gd" | xargs editorconfig-checker
echo "Running EditorConfig verification in demo directory..."
find demo -type f -name "*.gd" -not -path "demo/addons/*" | xargs editorconfig-checker