diff --git a/.replit b/.replit index 7543f223..547eaae4 100644 --- a/.replit +++ b/.replit @@ -11,13 +11,33 @@ env = { "CI" = "true" } [workflows] runButton = "Project" +[[workflows.workflow]] +name = "Project" +mode = "parallel" +author = "agent" + +[[workflows.workflow.tasks]] +task = "workflow.run" +args = "test" + +[[workflows.workflow]] +name = "test" +author = "agent" + +[[workflows.workflow.tasks]] +task = "shell.exec" +args = "pnpm --filter @workspace/api-server test && pnpm --filter @workspace/teaboy-os test:e2e" + +[workflows.workflow.metadata] +isValidation = true + [agent] stack = "PNPM_WORKSPACE" expertMode = true [postMerge] path = "scripts/post-merge.sh" -timeoutMs = 20000 +timeoutMs = 120000 [[ports]] localPort = 8080 diff --git a/artifacts/teaboy-os/public/opengraph.jpg b/artifacts/teaboy-os/public/opengraph.jpg index 292b4728..afb1dfdb 100644 Binary files a/artifacts/teaboy-os/public/opengraph.jpg and b/artifacts/teaboy-os/public/opengraph.jpg differ diff --git a/package.json b/package.json index 9def4272..59b300dd 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "preinstall": "sh -c 'rm -f package-lock.json yarn.lock; case \"$npm_config_user_agent\" in pnpm/*) ;; *) echo \"Use pnpm instead\" >&2; exit 1 ;; esac'", "build": "pnpm run typecheck && pnpm -r --if-present run build", "typecheck:libs": "tsc --build", - "typecheck": "pnpm run typecheck:libs && pnpm -r --filter \"./artifacts/**\" --filter \"./scripts\" --if-present run typecheck" + "typecheck": "pnpm run typecheck:libs && pnpm -r --filter \"./artifacts/**\" --filter \"./scripts\" --if-present run typecheck", + "test": "pnpm --filter @workspace/api-server test && pnpm --filter @workspace/teaboy-os test:e2e" }, "private": true, "devDependencies": { diff --git a/scripts/post-merge.sh b/scripts/post-merge.sh index 49136a2e..dc016718 100644 --- a/scripts/post-merge.sh +++ b/scripts/post-merge.sh @@ -2,3 +2,4 @@ set -e pnpm install --frozen-lockfile pnpm --filter db run push-force +pnpm --filter @workspace/teaboy-os exec playwright install chromium