Skip to content

Commit 5f42543

Browse files
committed
change dev CI to bun run db:push
1 parent 0403765 commit 5f42543

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/migrations.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,15 @@ jobs:
3535
- name: Install dependencies
3636
run: bun install --frozen-lockfile
3737

38-
- name: Apply migrations
38+
- name: Apply database schema changes
3939
working-directory: ./packages/db
4040
env:
4141
DATABASE_URL: ${{ github.ref == 'refs/heads/main' && secrets.DATABASE_URL || github.ref == 'refs/heads/dev' && secrets.DEV_DATABASE_URL || secrets.STAGING_DATABASE_URL }}
42-
run: bun run ./scripts/migrate.ts
42+
run: |
43+
if [ "${{ github.ref }}" = "refs/heads/dev" ]; then
44+
echo "Dev environment detected — pushing schema with drizzle-kit (db:push)"
45+
bun run db:push --force
46+
else
47+
echo "Applying versioned migrations (db:migrate)"
48+
bun run ./scripts/migrate.ts
49+
fi

apps/sim/lib/copilot/request/lifecycle/headless.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ describe('runHeadlessCopilotLifecycle', () => {
9090
simRequestId: 'req-1',
9191
outcome: RequestTraceV1Outcome.success,
9292
chatId: 'chat-1',
93-
usage: {
93+
usage: expect.objectContaining({
9494
inputTokens: 10,
9595
outputTokens: 5,
96-
},
96+
}),
9797
cost: {
9898
rawTotalCost: 3,
9999
billedTotalCost: 3,

apps/sim/lib/copilot/request/sse-utils.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect, it } from 'bun:test'
1+
import { describe, expect, it } from 'vitest'
22
import {
33
MothershipStreamV1EventType,
44
MothershipStreamV1ToolExecutor,
@@ -35,7 +35,9 @@ describe('shouldSkipToolCallEvent', () => {
3535

3636
it('keeps non-vfs generating placeholders visible', () => {
3737
expect(
38-
shouldSkipToolCallEvent(toolCallEvent('search-generating-placeholder', 'search_online', undefined, true))
38+
shouldSkipToolCallEvent(
39+
toolCallEvent('search-generating-placeholder', 'search_online', undefined, true)
40+
)
3941
).toBe(false)
4042
})
4143
})

0 commit comments

Comments
 (0)