-
-
Notifications
You must be signed in to change notification settings - Fork 247
84 lines (71 loc) · 2.39 KB
/
Copy pathci.yml
File metadata and controls
84 lines (71 loc) · 2.39 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Continuous integration
on: [push, pull_request]
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
godot_version: ["4.7", "4.5.1"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install Node.js
uses: actions/setup-node@v5.0.0
with:
node-version: 22.x
- name: Install fgvm (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
curl -fLO https://github.com/patricktcoakley/fgvm/releases/latest/download/fgvm-linux-x64.tar.gz
tar -xzf fgvm-linux-x64.tar.gz
chmod +x fgvm
sudo mv fgvm /usr/local/bin/fgvm
- name: Install fgvm (Windows)
if: matrix.os == 'windows-latest'
run: |
Invoke-WebRequest -Uri "https://github.com/patricktcoakley/fgvm/releases/latest/download/fgvm-win-x64.zip" -OutFile "fgvm.zip"
Expand-Archive -Path "fgvm.zip" -DestinationPath "C:\fgvm"
echo "C:\fgvm" | Out-File -Encoding ascii -FilePath $env:GITHUB_PATH
- name: Cache Godot installations
uses: actions/cache@v4
with:
path: ${{ runner.temp }}/fgvm/fgvm/installations
key: fgvm-${{ matrix.os }}-${{ matrix.godot_version }}
- name: Install Godot ${{ matrix.godot_version }}
run: fgvm install ${{ matrix.godot_version }}
env:
FGVM_HOME: ${{ runner.temp }}/fgvm
- name: Install dependencies
run: npm install
- name: Run tests against Godot ${{ matrix.godot_version }}
uses: coactions/setup-xvfb@v1
with:
run: |
npm run test:engine -- ${{ matrix.godot_version }}
env:
GODOT_TOOLS_DEBUG: "false"
FGVM_HOME: ${{ runner.temp }}/fgvm
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install Node.js
uses: actions/setup-node@v5.0.0
with:
node-version: 22.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.2
with:
name: godot-tools
path: godot-tools.vsix