Skip to content

armgit / Orkas

Public Imported from GitHub
0

Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.

ci: provision Linux runtimes before native tests

Orkas-AI3cd40b5f4ba2
diff --git a/.github/workflows/linux-source-smoke.yml b/.github/workflows/linux-source-smoke.yml
index 086f3084..2ecfa881 100644
--- a/.github/workflows/linux-source-smoke.yml
+++ b/.github/workflows/linux-source-smoke.yml
@@ -49,15 +49,6 @@ jobs:
- name: Install JavaScript dependencies
run: npm ci
- - name: Run Linux platform-native test lane
- run: npm run test:platform-native
-
- - name: Type-check
- run: node node_modules/typescript/bin/tsc --noEmit
-
- - name: Prepare and verify built-in Linux dependencies
- run: node scripts/ensure-dev-dependencies.cjs
-
- name: Install Xvfb when the runner image does not provide it
run: |
if ! command -v xvfb-run >/dev/null 2>&1; then
@@ -65,6 +56,15 @@ jobs:
sudo apt-get install --yes xvfb
fi
+ - name: Prepare and verify built-in Linux dependencies
+ run: node scripts/ensure-dev-dependencies.cjs
+
+ - name: Run Linux platform-native test lane
+ run: xvfb-run --auto-servernum npm run test:platform-native
+
+ - name: Type-check
+ run: node node_modules/typescript/bin/tsc --noEmit
+
- name: Run native inference and Electron GUI smoke
run: xvfb-run --auto-servernum npm run test:linux-source
diff --git a/test/main/util/linux-source-dependencies.test.ts b/test/main/util/linux-source-dependencies.test.ts
index 2113728f..564dc490 100644
--- a/test/main/util/linux-source-dependencies.test.ts
+++ b/test/main/util/linux-source-dependencies.test.ts
@@ -148,6 +148,7 @@ describe('Linux source dependency contract', () => {
expect(workflow).toMatch(/run:\s+npm ci\s*$/m);
expect(workflow).not.toContain('npm ci --ignore-scripts');
expect(workflow).toContain('node scripts/ensure-dev-dependencies.cjs');
+ expect(workflow).toContain('xvfb-run --auto-servernum npm run test:platform-native');
expect(workflow).toContain('xvfb-run --auto-servernum npm run test:linux-source');
expect(workflow).toContain('npm run test:linux-whisper');
expect(workflow).toContain('npm run test:linux-ocr');
@@ -166,6 +167,10 @@ describe('Linux source dependency contract', () => {
expect(dependencyProvisioner).toContain("run('Linux host preflight'");
expect(dependencyProvisioner).toContain("run('Linux source dependencies'");
+ expect(workflow.indexOf('node scripts/ensure-dev-dependencies.cjs')).toBeLessThan(
+ workflow.indexOf('xvfb-run --auto-servernum npm run test:platform-native'),
+ );
+
const launcher = fs.readFileSync(path.join(process.cwd(), 'run.sh'), 'utf8');
expect(launcher).toContain('Node.js 20+ is required to bootstrap the source checkout');
expect(launcher).toContain('verify-linux-source-dependencies.cjs\" --host-only');