Skip to content

Commit 6e0bf9f

Browse files
committed
Create workflow
1 parent d743fb1 commit 6e0bf9f

File tree

60 files changed

+310
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+310
-127
lines changed

.codespellrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
skip = demo/addons/gut
3+
builtin = en-GB_to_en-US

.gdlintrc

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
class-definitions-order:
2+
- tools
3+
- classnames
4+
- extends
5+
- signals
6+
- enums
7+
- consts
8+
- exports
9+
- pubvars
10+
- prvvars
11+
- onreadypubvars
12+
- onreadyprvvars
13+
- others
14+
class-load-variable-name: (([A-Z][a-z0-9]*)+|_?[a-z][a-z0-9]*(_[a-z0-9]+)*)
15+
class-name: ([A-Z][a-z0-9]*)+
16+
class-variable-name: _?[a-z][a-z0-9]*(_[a-z0-9]+)*
17+
comparison-with-itself: null
18+
constant-name: '[A-Z][A-Z0-9]*(_[A-Z0-9]+)*'
19+
disable: []
20+
duplicated-load: null
21+
enum-element-name: '[A-Z][A-Z0-9]*(_[A-Z0-9]+)*'
22+
enum-name: ([A-Z][a-z0-9]*)+
23+
excluded_directories: !!set
24+
.git: null
25+
expression-not-assigned: null
26+
function-argument-name: _?[a-z][a-z0-9]*(_[a-z0-9]+)*
27+
function-arguments-number: 10
28+
function-name: (_on_([A-Z][a-z0-9]*)+(_[a-z0-9]+)*|_?[a-z][a-z0-9]*(_[a-z0-9]+)*)
29+
function-preload-variable-name: ([A-Z][a-z0-9]*)+
30+
function-variable-name: '[a-z][a-z0-9]*(_[a-z0-9]+)*'
31+
load-constant-name: (([A-Z][a-z0-9]*)+|[A-Z][A-Z0-9]*(_[A-Z0-9]+)*)
32+
loop-variable-name: _?[a-z][a-z0-9]*(_[a-z0-9]+)*
33+
max-file-lines: 1000
34+
max-line-length: 100
35+
max-public-methods: 20
36+
max-returns: 6
37+
mixed-tabs-and-spaces: null
38+
no-elif-return: null
39+
no-else-return: null
40+
private-method-call: null
41+
signal-name: '[a-z][a-z0-9]*(_[a-z0-9]+)*'
42+
sub-class-name: _?([A-Z][a-z0-9]*)+
43+
tab-characters: 1
44+
trailing-whitespace: null
45+
unnecessary-pass: null
46+
unused-argument: null

.github/workflows/master.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: 🌟 Master
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
jobs:
8+
gdscript:
9+
name: 💅 Linting / 🤖 GDScript
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- run: pip3 install "gdtoolkit==4.*"
14+
- run: bash -c 'for f in ./demo/addons/json_config_file/**/*.gd; do gdlint "$f"; done'
15+
- run: bash -c 'for f in ./demo/tests/**/*.gd; do gdlint "$f"; done'
16+
17+
spelling:
18+
name: 💅 Linting / 👓 Spelling
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: codespell-project/actions-codespell@v1
23+
24+
unit-testing:
25+
name: 🧪 Unit Testing
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
30+
- name: Download Godot
31+
run: |
32+
curl -O https://downloads.tuxfamily.org/godotengine/4.0.3/Godot_v4.0.3-stable_linux.x86_64.zip
33+
unzip Godot_v4.0.3-stable_linux.x86_64.zip
34+
35+
- name: Execute tests
36+
run: |
37+
./Godot_v4.0.3-stable_linux.x86_64 --headless -d -s --path ./demo addons/gut/gut_cmdln.gd
38+
39+
package:
40+
name: 📦 Package
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v3
44+
45+
- name: Create addon
46+
run: |
47+
mkdir addons
48+
cp -R demo/addons/json_config_file addons
49+
cp LICENSE.md addons/json_config_file
50+
51+
- name: Create package
52+
run: |
53+
zip -r json_config_file.zip addons
54+
55+
- name: Upload addon
56+
uses: actions/upload-artifact@v3
57+
with:
58+
name: json_config_file
59+
path: json_config_file.zip

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
.godot
1+
2+
#################################################################
3+
# TODO: Replace with .godot when the following issue is solved: #
4+
# https://github.com/godotengine/godot/issues/75684 #
5+
demo/.godot/editor
6+
demo/.godot/shader_cache
7+
#################################################################
28
.import/
39
export.cfg
410
export_presets.cfg

LICENSE.txt renamed to LICENSE.md

Lines changed: 2 additions & 0 deletions

demo/.godot/.gdignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
list=Array[Dictionary]([{
2+
"base": &"RefCounted",
3+
"class": &"GutHookScript",
4+
"icon": "",
5+
"language": &"GDScript",
6+
"path": "res://addons/gut/hook_script.gd"
7+
}, {
8+
"base": &"RefCounted",
9+
"class": &"GutStringUtils",
10+
"icon": "",
11+
"language": &"GDScript",
12+
"path": "res://addons/gut/strutils.gd"
13+
}, {
14+
"base": &"Node",
15+
"class": &"GutTest",
16+
"icon": "",
17+
"language": &"GDScript",
18+
"path": "res://addons/gut/test.gd"
19+
}, {
20+
"base": &"Object",
21+
"class": &"JSONConfigFile",
22+
"icon": "",
23+
"language": &"GDScript",
24+
"path": "res://addons/json_config_file/json_config_file.gd"
25+
}, {
26+
"base": &"Object",
27+
"class": &"JSONSchema",
28+
"icon": "",
29+
"language": &"GDScript",
30+
"path": "res://addons/json_config_file/json_schema.gd"
31+
}, {
32+
"base": &"GutTest",
33+
"class": &"PropertyGutTest",
34+
"icon": "",
35+
"language": &"GDScript",
36+
"path": "res://tests/properties/property_gut_test.gd"
37+
}])
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source_md5="401e77d048b500d714375a77d4ca4326"
2+
dest_md5="5b1c05f40fbc665e33ca0e2dec4e6e0e"
3+
Binary file not shown.

0 commit comments

Comments
 (0)