mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2025-12-31 13:48:24 +03:00
- Redesigned the representation of godot objects to match internal structure of godot server - Lazy evaluation for the godot objects - Stack frames now can be switched with variables updated
82 lines
2.5 KiB
YAML
82 lines
2.5 KiB
YAML
name: Continuous integration
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v4.2.0
|
|
with:
|
|
node-version: 22.x
|
|
|
|
- name: Install Godot (Ubuntu)
|
|
if: matrix.os == 'ubuntu-latest'
|
|
run: |
|
|
wget https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_linux.x86_64.zip
|
|
unzip Godot_v4.3-stable_linux.x86_64.zip
|
|
sudo mv Godot_v4.3-stable_linux.x86_64 /usr/local/bin/godot
|
|
chmod +x /usr/local/bin/godot
|
|
|
|
- name: Install Godot (macOS)
|
|
if: matrix.os == 'macos-latest'
|
|
run: |
|
|
curl -L -o Godot.zip https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_macos.universal.zip
|
|
unzip Godot.zip
|
|
sudo mv Godot.app /Applications/Godot.app
|
|
sudo ln -s /Applications/Godot.app/Contents/MacOS/Godot /usr/local/bin/godot
|
|
|
|
- name: Install Godot (Windows)
|
|
if: matrix.os == 'windows-latest'
|
|
run: |
|
|
Invoke-WebRequest -Uri "https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_win64.exe.zip" -OutFile "Godot.zip"
|
|
Expand-Archive -Path "Godot.zip" -DestinationPath "C:\Godot43"
|
|
"C:\Godot43\Godot_v4.3-stable_win64.exe %*" | Out-File -Encoding ascii -FilePath ([Environment]::SystemDirectory+"\godot.cmd")
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Godot init project
|
|
run: godot --import test_projects/test-dap-project-godot4/project.godot --headless
|
|
|
|
- name: Run headless test
|
|
uses: coactions/setup-xvfb@v1
|
|
with:
|
|
run: |
|
|
npm run compile
|
|
npm test
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v4.2.0
|
|
with:
|
|
node-version: 16.x
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Lint and build extension
|
|
run: |
|
|
npm run lint
|
|
npm run package -- --out godot-tools.vsix
|
|
ls -l godot-tools.vsix
|
|
|
|
- name: Upload extension VSIX
|
|
uses: actions/upload-artifact@v4.6.0
|
|
with:
|
|
name: godot-tools
|
|
path: godot-tools.vsix
|