-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (55 loc) · 1.6 KB
/
Copy pathci.yml
File metadata and controls
58 lines (55 loc) · 1.6 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
name: ci
on:
push:
pull_request:
permissions:
contents: read
jobs:
validate:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
node: [22, 24]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm audit --audit-level=high
- run: npm run typecheck
- run: npm test
- run: npm run build
- name: Parse JavaScript entry points
run: |
node --check apps/tray/session-host.mjs
node --check scripts/beauticode.mjs
node --check scripts/live-smoke.mjs
node --check packages/adapter-codex/src/renderer/background-runtime.js
- name: Parse PowerShell launchers
if: runner.os == 'Windows'
shell: powershell
run: |
$scripts = @(
"apps/tray/start-tray.ps1",
"scripts/codex-launch.ps1",
"scripts/start-beauticode-engine.ps1",
"scripts/install-desktop-shortcut.ps1",
"scripts/build-windows-installer.ps1"
)
foreach ($script in $scripts) {
$tokens = $null
$errors = $null
[void][System.Management.Automation.Language.Parser]::ParseFile(
(Resolve-Path $script),
[ref]$tokens,
[ref]$errors
)
if ($errors.Count -gt 0) {
$errors | ForEach-Object { Write-Error $_.Message }
exit 1
}
}