Skip to content

Commit

Permalink
chore: bump godot
Browse files Browse the repository at this point in the history
  • Loading branch information
lishaduck committed Feb 26, 2024
1 parent 3a68d5c commit 69b4252
Show file tree
Hide file tree
Showing 161 changed files with 4,999 additions and 1,154 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Normalize EOL for all files that Git considers text files.
* text=auto eol=lf

addons/** linguist-vendored=true
/img/** export-ignore
18 changes: 18 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
assignees:
- "lishaduck"
groups:
github-actions:
patterns:
- "actions/*"
138 changes: 138 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
---
name: CI/CD

on:
push:
branches:
- main
pull_request:
merge_group:
schedule:
- cron: "0 14 * * 1" # Every Monday at 9 A.M. CST.
workflow_dispatch:

env:
CI: true
GODOT_VERSION: "4.2.1"
GDTOOLKIT_VERSION: "4.2.2"
DENO_VERSION: "v1.40.3"

permissions:
contents: read

jobs:
build:
name: Build
needs: []
timeout-minutes: ${{ (matrix.target == 'web') && 5 || 10 }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
target:
- quest
include:
- target: quest
os: ubuntu-latest
godot-flags: --export-release "Meta Quest" build/index.html

steps:
- name: 📚 Git checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
clean: true
persist-credentials: false
set-safe-directory: true
- name: 🤖 Set up Godot
uses: chickensoft-games/setup-godot@d3fbddfbafb76fbce64d878aa3d31090e5d0fe0c # v1.5.6
with:
version: ${{ env.GODOT_VERSION }}
use-dotnet: false
- name: 🔬 Verify setup
run: godot --version
- name: 🔌 Make and delete directories
run: mkdir build/ && rm -rf addons/{godot-git-plugin,wakatime}
- name: 🔧 Build
run: godot --headless ${{ matrix.godot-flags }}
- name: ⚙️ Upload build
if: matrix.target == 'quest'
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: build-${{ matrix.target }}
path: "./build"
if-no-files-found: error

lint:
name: Linting
needs: []
timeout-minutes: 5
runs-on: ubuntu-latest

steps:
- name: 📚 Git checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
clean: true
persist-credentials: false
set-safe-directory: true
- name: 🤖 Set up Godot
uses: Scony/godot-gdscript-toolkit@cbd7a1dcff14cd272787a4ca497c7ff328714a6c # master
with:
version: ${{ env.GDTOOLKIT_VERSION }}
- name: 🔬 Verify setup
run: gdparse --version
- name: 🕵️ Analyze project source
run: gdlint .

format:
name: Formatting
needs: []
timeout-minutes: 3
runs-on: ubuntu-latest

steps:
- name: 📚 Git checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
clean: true
persist-credentials: false
set-safe-directory: true
- name: 🤖 Set up Godot
uses: Scony/godot-gdscript-toolkit@cbd7a1dcff14cd272787a4ca497c7ff328714a6c # master
with:
version: ${{ env.GDTOOLKIT_VERSION }}
- name: 🔬 Verify setup
run: gdparse --version
- name: ✨ Verify formatting
run: gdformat --check $(find . -name '*.gd' -not -path "./addons/*")

check:
name: Check TS
needs: []
runs-on: ubuntu-latest
timeout-minutes: 2
permissions:
pull-requests: write # Needed for Biome PR comments.

steps:
- name: 📚 Git checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
clean: true
persist-credentials: false
set-safe-directory: true
- name: 🦕 Install Deno
uses: denoland/setup-deno@041b854f97b325bd60e53e9dc2de9cb9f9ac0cba # v1.1.4
with:
deno-version: ${{ env.DENO_VERSION }}
- name: 🕵️ Run linter, verify formatting, typecheck
run: deno task ci
- name: 🧪 Run tests
run: deno task test
- name: 📊 Collect coverage
run: deno task test:coverage
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# Godot 4+ specific ignores
.godot/

# Godot-specific ignores
.import/
export.cfg

# Imported translations (automatically generated from CSV files)
*.translation

# Mono-specific ignores
.mono/
data_*/
mono_crash.*.json

# Build-specific ignores
build/
android/
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"razoric.gdscript-toolkit-formatter",
"eddiedover.gdscript-formatter-linter",
"geequlim.godot-tools"
]
}
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"[gdscript]": {
"editor.defaultFormatter": "EddieDover.gdscript-formatter-linter",
"editor.insertSpaces": false,
"editor.tabSize": 4,
"editor.detectIndentation": false
},
"files.associations": {
"gdlintrc": "yaml"
},
"cSpell.words": ["elif", "onready", "spawnables", "teleporter", "tscn"],
"cSpell.enableFiletypes": ["gdscript"]
}
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Official releases are tagged and can be found [here](https://github.com/GodotVR/
The following branches are in active development:
| Branch | Description | Godot version |
|----------|-------------------------------|-----------------|
| main | Current development branch | Godot 4.1+ |
| main | Current development branch | Godot 4.2+ |
| 4.1 | Godot 4.1 development branch | Godot 4.1 |
| 3.x | Godot 3.x development branch | Godot 3.5+ |

## Assets
Expand Down
21 changes: 21 additions & 0 deletions addons/godot-git-plugin/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2016-2023 The Godot Engine community

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 69b4252

Please sign in to comment.