Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
ci: replace pnpm/action-setup with oven-sh/setup-bun across workflows
trohitg6e7cc0e77300
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.ymlindex defe92fe..90228182 100644--- a/.github/actions/setup/action.yml+++ b/.github/actions/setup/action.yml@@ -1,6 +1,6 @@-# Shared environment setup: Node, Python, uv, CLI deps.+# Shared environment setup: Node, bun, Python, uv, CLI deps.name: 'Setup OpenCompany Environment'-description: 'Setup Node.js, Python, uv, and the supervisor CLI.'+description: 'Setup Node.js, bun, Python, uv, and the supervisor CLI.'inputs:node-version:@@ -10,14 +10,17 @@ inputs:runs:using: compositesteps:- - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0+ # Reads the bun version from the root package.json "packageManager" pin.+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0+ # Node 22 stays the runtime (vite, vitest, eslint, the sidecar run on+ # node via shebang; bun is package manager + script runner only).- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0with:node-version: ${{ inputs.node-version }}package-manager-cache: false# Explicitly disabled: release jobs carry publish credentials, and- # several lanes never run pnpm, which also makes post-job cache saves- # fail with Path Validation Error.+ # several lanes never run a JS package manager, which also makes+ # post-job cache saves fail with Path Validation Error.- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0with:python-version: '3.12'diff --git a/.github/dependabot.yml b/.github/dependabot.ymlindex a71ca2cc..e3f953cb 100644--- a/.github/dependabot.yml+++ b/.github/dependabot.yml@@ -10,16 +10,20 @@# Do not "fix" the 0 limits without reading the ci_cd.md section first.version: 2updates:- # npm - the root pnpm workspace covers package.json, client/, and- # server/nodejs/ through the single pnpm-lock.yaml. (A former `/server`+ # bun - the root bun workspace covers package.json, client/, and+ # server/nodejs/ through the single bun.lock. (A former `/server`# entry pointed at a manifest deleted in d0e1b816 and was removed.)- - package-ecosystem: npm+ # NOTE: the bun ecosystem supports version updates only - Dependabot+ # does NOT open security-update PRs for bun.lock (alerts still fire+ # from the dependency graph). The top-level `overrides` block in+ # package.json is this repo's actual security-pin remediation channel.+ - package-ecosystem: bundirectory: /schedule:interval: weeklyopen-pull-requests-limit: 0groups:- npm-security:+ bun-security:applies-to: security-updatespatterns: ["*"]diff --git a/.github/workflows/predeploy.yml b/.github/workflows/predeploy.ymlindex ac8095a7..e7cb090a 100644--- a/.github/workflows/predeploy.yml+++ b/.github/workflows/predeploy.yml@@ -18,14 +18,14 @@ jobs:with:persist-credentials: false- uses: ./.github/actions/setup- - run: pnpm install --frozen-lockfile- - run: pnpm run build+ - run: bun install --frozen-lockfile+ - run: bun run build- name: Lint client- run: pnpm --filter react-flow-client run lint+ run: bun run --filter react-flow-client lint- name: TypeScript check- run: pnpm --filter react-flow-client run typecheck+ run: bun run --filter react-flow-client typecheck- name: Frontend tests (vitest)- run: pnpm --filter react-flow-client run test+ run: bun run --filter react-flow-client testbackend-tests:name: Backend tests@@ -66,34 +66,36 @@ jobs:with:persist-credentials: false- uses: ./.github/actions/setup- - run: pnpm run build+ - run: bun run build# The TS7 compiler is a per-platform Go binary delivered through# optionalDependencies. The type-check gate runs on ubuntu only, so# without this the darwin-arm64 and win32-x64 binaries are installed# on every matrix run and never executed — a broken one would pass CI- # and surface on a developer machine instead.+ # and surface on a developer machine instead. `bun run tsc` resolves+ # strictly from the root node_modules/.bin (TS7) — never `bunx`,+ # which falls back to the npm registry.- name: TypeScript binary resolves on this platform- run: pnpm exec tsc --version+ run: bun run tsc --version- name: Test start (Unix)if: runner.os != 'Windows'shell: bashrun: |APP_PORT=$(grep -E '^PYTHON_BACKEND_PORT=' .env.template | cut -d= -f2)- pnpm run start &+ bun run start &PID=$!for i in {1..15}; docurl -sf "http://localhost:${APP_PORT}/health" > /dev/null 2>&1 && breaksleep 2done- kill -0 $PID 2>/dev/null && pnpm run stop || (echo FAILED; exit 1)+ kill -0 $PID 2>/dev/null && bun run stop || (echo FAILED; exit 1)- name: Test start (Windows)if: runner.os == 'Windows'shell: pwshrun: |- $job = Start-Job -ScriptBlock { Set-Location $using:PWD; pnpm run start }+ $job = Start-Job -ScriptBlock { Set-Location $using:PWD; bun run start }Start-Sleep -Seconds 15if ($job.State -eq "Running") { Stop-Job $job; Remove-Job $job }else { Receive-Job $job; exit 1 }diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex eafc5d63..83f1ec2a 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -32,8 +32,8 @@ jobs:node-version: '22'package-manager-cache: falseregistry-url: 'https://registry.npmjs.org'- - run: pnpm install --frozen-lockfile- - run: pnpm run build+ - run: bun install --frozen-lockfile+ - run: bun run build- run: python -m cli version sync- name: Verify npm credentialsrun: npm whoami@@ -61,8 +61,8 @@ jobs:node-version: '22'package-manager-cache: falseregistry-url: 'https://npm.pkg.github.com'- - run: pnpm install --frozen-lockfile- - run: pnpm run build+ - run: bun install --frozen-lockfile+ - run: bun run build- run: python -m cli version sync- name: Configure scoped packagerun: |