Repository navigation
181 lines (172 loc) · 7.64 KB
/
Copy pathci.yml
File metadata and controls
181 lines (172 loc) · 7.64 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
name: Check (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- run: npm test
# check:markers loads every built integration package.
- run: npm run build
- run: npm run check:markers
gaffer:
name: Gaffer host, programs and panel consent (1.7.6.0, private profile)
runs-on: windows-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
cache: npm
- run: npm ci
- name: Download the portable Gaffer and verify its digest
shell: pwsh
run: |
$archive = Join-Path $env:RUNNER_TEMP 'gaffer.zip'
Invoke-WebRequest 'https://github.com/GafferHQ/gaffer/releases/download/1.7.6.0/gaffer-1.7.6.0-windows.zip' -OutFile $archive
if ((Get-FileHash $archive -Algorithm SHA256).Hash -ne '1B6C03F768E6FDFDE686A2AF256E59A313E1BFC64643371FA587DAC24AC69FC0') { throw 'Gaffer checksum mismatch' }
Expand-Archive $archive -DestinationPath $env:RUNNER_TEMP
- name: Exercise OpenCode Link, the fixed programs and the offscreen panel in the real Gaffer
shell: pwsh
run: |
$env:GAFFER_TEST_BIN = Join-Path $env:RUNNER_TEMP 'gaffer-1.7.6.0-windows/bin/gaffer.cmd'
node --test --test-concurrency=1 integrations/gaffer/test/real-host.test.ts integrations/gaffer/test/gaffer.test.ts
blender-native:
name: Blender binding contract (OpenCode 2.2.5, private service)
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run build --workspace @neuralnomads/opencode-blender
- name: Install the pinned native CLI outside the checkout
run: npm install --prefix "$RUNNER_TEMP/opencode-native" --no-save --package-lock=false @opencode/cli@2.2.5
- name: Exercise native sessions with an authenticated fake host
run: |
export OPENCODE_TEST_BIN="$(node -e 'const p = require("node:path"); const root = p.join(process.env.RUNNER_TEMP, "opencode-native/node_modules/@opencode/cli"); console.log(p.resolve(root, require(p.join(root, "package.json")).bin.opencode))')"
"$OPENCODE_TEST_BIN" --version
node --test integrations/blender/test/native-session-bindings.test.ts
blender:
name: Blender host tests (Blender ${{ matrix.blender }}, background)
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
include:
- blender: 5.3.0
sha256: dacb8264197a3f7fda6001285a5a506fc97ee943881261c2c3bd63c882f22e05
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
cache: npm
- name: Cache the pinned Blender
id: blender-cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/blender-${{ matrix.blender }}
key: blender-${{ matrix.blender }}-${{ matrix.sha256 }}
- name: Download Blender ${{ matrix.blender }} and check its sha256
if: steps.blender-cache.outputs.cache-hit != 'true'
env:
VERSION: ${{ matrix.blender }}
SHA256: ${{ matrix.sha256 }}
run: |
archive="blender-${VERSION}-linux-x64.tar.xz"
curl --fail --location --silent --show-error -o "$RUNNER_TEMP/$archive" "https://download.blender.org/release/Blender${VERSION%.*}/$archive"
echo "$SHA256 $RUNNER_TEMP/$archive" | sha256sum --check
mkdir -p "$HOME/blender-${VERSION}"
tar -xJf "$RUNNER_TEMP/$archive" -C "$HOME/blender-${VERSION}" --strip-components=1
- name: Libraries for background Blender
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y libxi6 libxxf86vm1 libxfixes3 libxrender1 libxkbcommon0 libsm6 libgl1 libegl1
- run: npm ci
- name: Add-on tests, plugin tools and conformance against the add-on in Blender
run: |
export BLENDER_TEST_BIN="$HOME/blender-${{ matrix.blender }}/blender"
"$BLENDER_TEST_BIN" --version
node --test integrations/blender/test/blender.test.ts integrations/blender/test/conformance.test.ts
# The committed archive as users get it: extension validate, install-file in a private profile, hello judged ok.
- name: Payload archive through Blender's extension system
run: |
export BLENDER_TEST_BIN="$HOME/blender-${{ matrix.blender }}/blender"
node --test integrations/blender/test/extension.test.ts
godot:
name: Godot host and dock (4.7.2, headless)
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
cache: npm
- run: npm ci
- name: Download Godot and exercise the packaged add-on
run: |
archive=Godot_v4.7.2-stable_linux.x86_64.zip
curl --fail --location --silent --show-error -o "$RUNNER_TEMP/$archive" "https://github.com/godotengine/godot/releases/download/4.7.2-stable/$archive"
echo "cadd3204e728a35d3f13adb7fd0d7902636b79f6b95c40c265eb73b6c35329e4 $RUNNER_TEMP/$archive" | sha256sum --check
unzip -q "$RUNNER_TEMP/$archive" -d "$RUNNER_TEMP/godot"
export GODOT_TEST_BIN="$RUNNER_TEMP/godot/${archive%.zip}"
"$GODOT_TEST_BIN" --headless --version
node --test integrations/godot/test/godot.test.ts
trace-scan:
name: Trace scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run build
# Fork pull requests get no secrets: their scan is partial (every pattern but the Entra GUIDs).
- name: Scan tree, archives, npm pack tarballs and history
env:
TRACE_SCAN_FINGERPRINTS: ${{ secrets.TRACE_SCAN_FINGERPRINTS }}
run: |
if [ -z "$TRACE_SCAN_FINGERPRINTS" ]; then
echo "::warning title=Partial trace scan::TRACE_SCAN_FINGERPRINTS is not available; known Entra GUIDs were not checked."
fi
node scripts/trace-scan.ts --tree --packs --history