-
Notifications
You must be signed in to change notification settings - Fork 202
600 lines (519 loc) · 24.2 KB
/
Copy pathci.yml
File metadata and controls
600 lines (519 loc) · 24.2 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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
name: CI
on:
pull_request:
branches: [main]
paths-ignore:
- 'png/**'
push:
branches: [main]
paths-ignore:
- 'png/**'
# Cancel previous runs on same branch/PR
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
# ── Build impact: fast checks plus the smallest useful package set ──
build-impact:
name: Build Impact
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
rust_required: ${{ steps.classify.outputs.rust_required }}
frontend_required: ${{ steps.classify.outputs.frontend_required }}
desktop_packages_impacted: ${{ steps.classify.outputs.desktop_packages_impacted }}
desktop_platforms: ${{ steps.classify.outputs.desktop_platforms }}
linux_binaries_required: ${{ steps.classify.outputs.linux_binaries_required }}
relay_image_required: ${{ steps.classify.outputs.relay_image_required }}
dsh_profile_required: ${{ steps.classify.outputs.dsh_profile_required }}
pr_producer_required: ${{ steps.classify.outputs.pr_producer_required }}
reason: ${{ steps.classify.outputs.reason }}
changed_count: ${{ steps.classify.outputs.changed_count }}
steps:
- uses: actions/checkout@v5
with:
# Pull requests need both base/head objects; main pushes need the
# previous commit even after a non-fast-forward update.
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version-file: package.json
package-manager-cache: false
- name: Classify build impact
id: classify
env:
BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
RANGE_MODE: ${{ github.event_name == 'pull_request' && 'merge-base' || 'direct' }}
run: node scripts/ci/classify-build-impact.mjs --base "$BASE_SHA" --head "$HEAD_SHA" --range-mode "$RANGE_MODE"
# ── Shell deploy assets: LF endings + syntax ───────────────────────
# Relay one-click deploy embeds these scripts into the Desktop binary and
# uploads them verbatim to a Linux host, where a single CR aborts the deploy
# with `$'\r': command not found`. .gitattributes pins LF; this is the guard.
shell-scripts:
name: Shell Deploy Scripts
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version-file: package.json
package-manager-cache: false
- name: Reject CRLF in shell and deploy assets
run: |
bad=$(git ls-files -z \
'*.sh' '*.bash' 'Dockerfile' 'Dockerfile.*' '*.Dockerfile' 'Caddyfile' \
'docker-compose.yml' 'docker-compose.*.yml' \
| xargs -0 -r grep -lU $'\r' || true)
if [ -n "$bad" ]; then
echo "::error::CRLF line endings found; these must stay LF (see .gitattributes):"
echo "$bad"
exit 1
fi
echo "All shell and deploy assets are LF-only."
- name: bash -n every tracked shell script
run: |
rc=0
while IFS= read -r -d '' f; do
bash -n "$f" || { echo "::error file=$f::bash syntax error"; rc=1; }
done < <(git ls-files -z '*.sh' '*.bash')
exit "$rc"
- name: Verify release and version-generation contracts
run: node --test scripts/release-channel.test.mjs scripts/tauri-release-manifest.test.mjs scripts/linux-binaries-manifest.test.mjs scripts/version-generation.test.mjs
- name: Verify minisign download fallback
run: |
set -euo pipefail
test_root="$(mktemp -d)"
trap 'rm -rf "$test_root"' EXIT
mkdir -p "$test_root/stubs"
printf '#!/usr/bin/env bash\nexit 1\n' >"$test_root/stubs/sudo"
chmod +x "$test_root/stubs/sudo"
PATH="$test_root/stubs:/usr/bin:/bin" \
RUNNER_TEMP="$test_root" \
BITFUN_SIGNING_KEY="YQ==" \
bash scripts/sign-release-assets.sh "$test_root/missing-asset"
"$test_root/bitfun-minisign-0.12/bin/minisign" -v
# ── CLI: independent tests ─────────────────────────────────────────
cli-test:
name: CLI Tests (${{ matrix.os }})
needs: build-impact
if: ${{ !cancelled() && needs.build-impact.outputs.rust_required != 'false' }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
cache_key: ubuntu
- os: macos-15
cache_key: macos
- os: windows-latest
cache_key: windows
steps:
- uses: actions/checkout@v5
- name: Install Linux system dependencies
if: runner.os == 'Linux'
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
pkg-config \
build-essential \
libxcb1-dev \
libxcb-render0-dev \
libxcb-shape0-dev \
libxcb-xfixes0-dev
- uses: dtolnay/rust-toolchain@stable
- uses: swatinem/rust-cache@v2
with:
shared-key: "cli-ci-v3-${{ github.base_ref || github.ref_name }}-${{ matrix.cache_key }}"
cache-bin: false
# PRs restore trusted caches but never publish merge-ref artifacts.
save-if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/1.0.0-explore') }}
cache-on-failure: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/1.0.0-explore') }}
- name: Run CLI and ACP tests on macOS
if: runner.os == 'macOS'
run: cargo test --locked -p bitfun-cli -p bitfun-acp
- name: Run CLI, ACP, and agent runtime tests
if: runner.os == 'Linux'
run: cargo test --locked -p bitfun-cli -p bitfun-acp -p bitfun-agent-runtime
# ConPTY is a Windows-only execution path. Keep its interactive contracts
# serialized: concurrent native PTYs contend on hosted runners and used to
# race action delivery, TUI restoration, and output observation in Nightly.
- name: Run Windows CLI terminal contracts
if: runner.os == 'Windows'
run: cargo test --locked -p bitfun-cli --test terminal_process_contracts -- --test-threads=1
- name: Run SDK Host tests
if: runner.os == 'Linux'
run: cargo test --locked -p bitfun-sdk-host -p bitfun-sdk-host-app
- name: Run SDK Host terminal cleanup regressions
if: runner.os == 'Linux'
run: |
cargo test --locked -p terminal-core shutdown_returns_only_after_process_exit_is_confirmed -- --test-threads=1
cargo test --locked -p terminal-core shutdown_evicts_a_process_whose_controller_already_confirmed_exit -- --test-threads=1
cargo test --locked -p terminal-core background_only_binding_is_owned_by_the_session -- --test-threads=1
# ── Rust: build check ─────────────────────────────────────────────
rust-build-check:
name: Rust Build Check (${{ matrix.os }})
needs: build-impact
if: ${{ !cancelled() && needs.build-impact.outputs.rust_required != 'false' }}
runs-on: ${{ matrix.os }}
env:
# Keep the workspace check plus desktop test profiles within hosted-runner disk limits.
CARGO_INCREMENTAL: "0"
CARGO_PROFILE_DEV_DEBUG: "0"
CARGO_PROFILE_TEST_DEBUG: "0"
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-15
- windows-latest
steps:
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version-file: package.json
package-manager-cache: false
# Tauri code generation only requires its configured resource roots to
# exist during check/test; distributable assets remain frontend-build's owner.
- name: Create Tauri resource directories
shell: bash
run: mkdir -p dist src/mobile-web/dist
- name: Install Linux system dependencies (Tauri)
if: runner.os == 'Linux'
shell: bash
run: |
sudo apt-get update
if apt-cache show libwebkit2gtk-4.1-dev >/dev/null 2>&1; then
WEBKIT_PKG=libwebkit2gtk-4.1-dev
else
WEBKIT_PKG=libwebkit2gtk-4.0-dev
fi
if apt-cache show libappindicator3-dev >/dev/null 2>&1; then
APPINDICATOR_PKG=libappindicator3-dev
else
APPINDICATOR_PKG=libayatana-appindicator3-dev
fi
sudo apt-get install -y --no-install-recommends \
pkg-config \
libglib2.0-dev \
libgtk-3-dev \
libxdo-dev \
"$WEBKIT_PKG" \
"$APPINDICATOR_PKG" \
librsvg2-dev \
patchelf \
libleptonica-dev \
libtesseract-dev \
tesseract-ocr \
tesseract-ocr-eng
- uses: dtolnay/rust-toolchain@stable
- uses: swatinem/rust-cache@v2
with:
shared-key: "ci-check-v6-${{ github.base_ref || github.ref_name }}-${{ runner.os }}-no-cargo-bin"
cache-bin: false
# PR caches are scoped to merge refs; trusted main pushes own shared
# refreshes and retain completed dependency builds after late test failures.
save-if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/1.0.0-explore') }}
cache-on-failure: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/1.0.0-explore') }}
# Validate the committed manifests and lockfile before any release
# projection is allowed to rewrite workspace package entries.
- name: Verify committed Cargo metadata
run: cargo metadata --locked --no-deps
# rust-cache prunes the workspace target directory before saving it, so
# native libraries stored under target need an independent cache lifecycle.
- name: Restore Sherpa native libraries
id: sherpa-native-cache
uses: actions/cache/restore@v5
with:
path: target/sherpa-onnx-prebuilt
key: sherpa-onnx-v2-${{ github.base_ref || github.ref_name }}-${{ runner.os }}-${{ runner.arch }}-1.13.4-static
- name: Repair missing Sherpa native state
shell: bash
run: |
if ! find target/sherpa-onnx-prebuilt -type f \
\( -name 'sherpa-onnx-c-api.lib' -o -name 'libsherpa-onnx-c-api.a' \) \
-print -quit 2>/dev/null | grep -q .; then
rm -rf target/sherpa-onnx-prebuilt
cargo clean -p sherpa-onnx-sys
fi
- name: Check compilation
run: cargo check --locked --workspace
- name: Save Sherpa native libraries
if: >-
github.event_name == 'push' &&
(github.ref == 'refs/heads/main' || github.ref == 'refs/heads/1.0.0-explore') &&
steps.sherpa-native-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v5
with:
path: target/sherpa-onnx-prebuilt
key: sherpa-onnx-v2-${{ github.base_ref || github.ref_name }}-${{ runner.os }}-${{ runner.arch }}-1.13.4-static
# The installer is intentionally excluded from the root Cargo workspace,
# so the workspace check above cannot catch drift in its shared Rust APIs.
- name: Check installer compilation
if: runner.os == 'Windows'
run: cargo check --manifest-path BitFun-Installer/src-tauri/Cargo.toml
- name: Run core and desktop library tests
run: cargo test --locked -p bitfun-core -p bitfun-desktop --lib
# These crates own platform-sensitive behavior that is not exercised by
# testing bitfun-core/bitfun-desktop alone. Keep their focused contract
# suites in the OS matrix so Linux success cannot hide Windows/macOS
# regressions in worker interruption, relay storage, or OAuth handling.
- name: Run Page Functions runtime tests
run: cargo test --locked -p bitfun-page-function-runtime
- name: Run Relay service tests
run: cargo test --locked -p bitfun-relay-service
- name: Run subscription authentication tests
run: cargo test --locked -p bitfun-ai-adapters --features subscription-auth --lib subscription_auth
# File watching is backed by a different OS API on every platform
# (ReadDirectoryChangesW / FSEvents / inotify), so watch registration,
# debounce, and atomic-rename regressions must stay in the full OS matrix.
# The suite is behind a non-default feature and would otherwise never run.
- name: Run file watch contract tests
run: cargo test --locked -p bitfun-services-integrations --no-default-features --features file-watch --test file_watch_contracts
# Search tools resolve paths and symlinks directly, which also differs
# across platforms. Scoped to the search module: the glob tests in this
# crate fail on Windows independently of this branch (walk-root
# derivation treats separators differently) and need their own fix.
- name: Run search tool tests
run: "cargo test --locked -p tool-runtime --lib search::"
# Call the standalone Linux/Relay workflow directly. Calling the Nightly
# artifact orchestrator would register a misleading skipped Desktop package
# check on every producer-selected PR even when that matrix is disabled.
package-impact-contract:
name: Impact-selected Linux / Relay Contract
needs: build-impact
if: >-
!cancelled() &&
github.event_name == 'pull_request' &&
needs.build-impact.result == 'success' &&
needs.build-impact.outputs.pr_producer_required == 'true'
uses: ./.github/workflows/linux-binaries.yml
permissions:
contents: read
with:
checkout_ref: ${{ github.sha }}
version: 0.0.0-nightly.ci.${{ github.run_id }}
artifact_prefix: ci-${{ github.run_id }}
artifact_retention_days: 1
validate_relay_image: ${{ needs.build-impact.outputs.relay_image_required == 'true' }}
upload_artifacts: false
cache_write: false
# Stable required result: verify both fast Rust scheduling and whether the
# impact-selected PR producer contract ran or intentionally skipped.
rust-validation-result:
name: Rust / CLI Validation
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ always() }}
needs: [build-impact, cli-test, rust-build-check, package-impact-contract]
steps:
- name: Verify Rust and CLI result
shell: pwsh
env:
RUST_REQUIRED: ${{ needs.build-impact.outputs.rust_required }}
PR_PRODUCER_REQUIRED: ${{ needs.build-impact.outputs.pr_producer_required }}
EVENT_NAME: ${{ github.event_name }}
IMPACT_RESULT: ${{ needs.build-impact.result }}
CLI_RESULT: ${{ needs.cli-test.result }}
RUST_RESULT: ${{ needs.rust-build-check.result }}
BUILD_RESULT: ${{ needs.package-impact-contract.result }}
run: |
$ErrorActionPreference = 'Stop'
if ($env:IMPACT_RESULT -ne 'success') {
throw "Build impact classification did not succeed: $env:IMPACT_RESULT"
}
switch ($env:RUST_REQUIRED) {
'false' {
if ($env:CLI_RESULT -ne 'skipped' -or $env:RUST_RESULT -ne 'skipped') {
throw "Expected skipped Rust/CLI jobs; CLI=$env:CLI_RESULT Rust=$env:RUST_RESULT"
}
}
'true' {
if ($env:CLI_RESULT -ne 'success' -or $env:RUST_RESULT -ne 'success') {
throw "Expected successful Rust and CLI jobs; CLI=$env:CLI_RESULT Rust=$env:RUST_RESULT"
}
}
default {
throw "Unexpected rust_required value: '$env:RUST_REQUIRED'"
}
}
$producerExpected = $env:EVENT_NAME -eq 'pull_request' -and $env:PR_PRODUCER_REQUIRED -eq 'true'
if ($producerExpected -and $env:BUILD_RESULT -ne 'success') {
throw "Expected successful impact-selected producer jobs; Build=$env:BUILD_RESULT"
}
if (-not $producerExpected -and $env:BUILD_RESULT -ne 'skipped') {
throw "Expected producer jobs to be skipped; Build=$env:BUILD_RESULT"
}
# ── DeepSeek Harness bridge: profile packaging on Windows ──────────
# `prepare:dsh-profile` runs from `frontend:build-all` / official desktop
# packaging, not from desktop:dev or cargo check. Until this job existed,
# its first Windows execution ever was a release build, and it failed there
# (`spawnSync npm ENOENT`: npm is a `.cmd` shim Node will not spawn without
# a shell). This job is the cheapest thing that exercises the whole
# packaging path — npm install, tsc, `npm pack`, tar, tree copy — on the
# platform whose path and process rules differ.
dsh-profile-windows:
name: DSH Profile Packaging (windows-latest)
needs: build-impact
if: ${{ !cancelled() && needs.build-impact.outputs.dsh_profile_required == 'true' }}
runs-on: windows-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version-file: package.json
package-manager-cache: false
- name: Build the bridge profile
run: node scripts/prepare-dsh-profile.mjs
- name: Verify the profile is complete and stamped
shell: bash
run: |
set -euo pipefail
root=packages/dsh-acp/dist-profile
for path in \
"$root/.bitfun-bridge.json" \
"$root/cordis.patch.yml" \
"$root/package.json" \
"$root/lib/app.js" \
"$root/node_modules/@agentclientprotocol/sdk/package.json" \
"$root/node_modules/@deepseek-ai/dsh-agent-spine-demo/package.json"
do
[ -f "$path" ] || { echo "::error::missing $path"; exit 1; }
done
# A vendored tree copied with a broken separator filter drags
# node_modules along; the profile resolves those from the user's own
# dsh installation and must ship none of its own beyond the two above.
nested=$(find "$root/lib" "$root/presets" -name node_modules -o -name '*.map' || true)
if [ -n "$nested" ]; then
echo "::error::profile carries files it must not ship:"
echo "$nested"
exit 1
fi
node -e '
const stamp = require("./packages/dsh-acp/dist-profile/.bitfun-bridge.json");
if (stamp.profile !== "bitfun-acp") throw new Error("wrong profile name: " + stamp.profile);
if (!/^[0-9a-f]{64}$/.test(stamp.content)) throw new Error("no content digest");
process.stdout.write(`profile ${stamp.profile} @ ${stamp.bridge}, min dsh ${stamp.minDshVersion}\n`);
'
# ── Frontend: build ────────────────────────────────────────────────
frontend-build:
name: Frontend Build
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max-old-space-size=6144
needs: build-impact
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 2
- name: Setup pnpm
uses: pnpm/action-setup@v5
- uses: actions/setup-node@v5
with:
node-version: 22
package-manager-cache: false
- name: Check repository hygiene
run: pnpm run check:repo-hygiene
- name: Test core boundary contracts
run: pnpm run check:core-boundaries:test
- name: Check core boundaries
run: pnpm run check:core-boundaries
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Setup Bun for package resource preflight
if: needs.build-impact.outputs.frontend_required != 'false'
uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.14"
no-cache: true
- name: Setup Rust for release projection preflight
if: needs.build-impact.outputs.frontend_required != 'false'
uses: dtolnay/rust-toolchain@stable
- name: Verify committed release metadata
if: needs.build-impact.outputs.frontend_required != 'false'
run: cargo metadata --locked --no-deps
- name: Verify Installer i18n projection
if: needs.build-impact.outputs.frontend_required != 'false'
run: pnpm --dir BitFun-Installer run sync:i18n
- name: Verify Installer Tauri package alignment
if: needs.build-impact.outputs.frontend_required != 'false'
shell: bash
run: |
set -euo pipefail
info="$(pnpm --dir BitFun-Installer exec tauri info 2>&1)"
printf '%s\n' "$info"
if grep -Fq 'Error: Found version mismatched Tauri packages.' <<<"$info"; then
exit 1
fi
- name: Build plugin Host resources
if: needs.build-impact.outputs.frontend_required != 'false'
run: |
bun install --cwd src/apps/extension-host --frozen-lockfile
bun run --cwd src/apps/extension-host build
- name: Generate web API bindings
if: needs.build-impact.outputs.frontend_required != 'false'
run: pnpm --dir src/web-ui run gen:types
- name: Validate PPT Live generated-file contract
if: needs.build-impact.outputs.frontend_required != 'false'
run: pnpm run test:ppt-live
- name: Validate GitHub config
run: pnpm run check:github-config
- name: Select i18n contract profile
if: needs.build-impact.outputs.frontend_required != 'false'
shell: bash
run: |
if git rev-parse HEAD^1 >/dev/null 2>&1 &&
git diff --name-only HEAD^1 HEAD -- scripts/i18n-audit.mjs scripts/i18n-contract.test.mjs | grep -q .; then
echo "BITFUN_I18N_CONTRACT_TEST_AUDIT_INTEGRATION=1" >> "$GITHUB_ENV"
fi
- name: Validate i18n contract
if: needs.build-impact.outputs.frontend_required != 'false'
run: pnpm run i18n:contract:test:ci
- name: Audit i18n resources
if: needs.build-impact.outputs.frontend_required != 'false'
run: pnpm run i18n:audit
- name: Validate theme color audit contract
if: needs.build-impact.outputs.frontend_required != 'false'
run: pnpm run theme:color-audit:test
- name: Audit theme color governance
if: needs.build-impact.outputs.frontend_required != 'false'
run: pnpm run theme:color-audit:all
- name: Validate theme visual governance contract
if: needs.build-impact.outputs.frontend_required != 'false'
run: pnpm run theme:visual-contract
- name: Validate WebKit compatibility gate
if: needs.build-impact.outputs.frontend_required != 'false'
run: pnpm run verify:webkit-compatibility:test
- name: Lint web UI
if: needs.build-impact.outputs.frontend_required != 'false'
run: pnpm run lint:web
- name: Run web UI tests
if: needs.build-impact.outputs.frontend_required != 'false'
run: pnpm --dir src/web-ui run test:run
- name: Build web UI
if: needs.build-impact.outputs.frontend_required != 'false'
run: pnpm run build:web
- name: Type-check mobile web
if: needs.build-impact.outputs.frontend_required != 'false'
run: pnpm --dir src/mobile-web run type-check
- name: Build mobile web
if: needs.build-impact.outputs.frontend_required != 'false'
run: pnpm run build:mobile-web
- name: Project a Nightly version
if: needs.build-impact.outputs.frontend_required != 'false'
run: node scripts/set-build-version.mjs --version "0.0.0-nightly.ci.${{ github.run_id }}"
- name: Verify projected release metadata
if: needs.build-impact.outputs.frontend_required != 'false'
run: cargo metadata --locked --no-deps