Skip to content

Commit 3366713

Browse files
authored
chore: ci speed (#206)
1 parent 3c83d75 commit 3366713

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ jobs:
5151
if: matrix.os == 'macos-latest'
5252
run: npm install -g appdmg
5353
- name: Install dependencies
54-
run: pnpm install
54+
run: npm exec turbo run bootstrap
5555
- name: Run e2e
5656
run: npm exec turbo run ui-tars-desktop#test:e2e

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
node-version: 20
4545
cache: 'pnpm'
4646
- name: Install dependencies
47-
run: pnpm install
47+
run: npm exec turbo run bootstrap
4848
- name: Run typecheck
4949
run: npm exec turbo run typecheck
5050
- name: Run test

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"author": "ByteDance",
99
"scripts": {
1010
"commit": "oco",
11+
"bootstrap": "pnpm i",
1112
"dev:ui-tars": "turbo run ui-tars-desktop#dev",
1213
"dev:agent-tars": "turbo run agent-tars-app#dev",
1314
"format": "prettier --write .",

turbo.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
"$schema": "https://turbo.build/schema.json",
33
"envMode": "loose",
44
"tasks": {
5+
"//#bootstrap": {
6+
"outputs": [
7+
"build/**",
8+
"dist/**",
9+
"out/**"
10+
]
11+
},
512
"ui-tars-desktop#build": {
613
"outputs": [
714
"dist/**",

0 commit comments

Comments
 (0)