Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit c91a086

Browse files
committed
chore: modify github action for turbo
Signed-off-by: teobler <teobler@163.com>
1 parent a2d5c19 commit c91a086

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525

2626
- run: npm ci
2727

28-
- run: npm run test
29-
3028
- run: npm run build --if-present
29+
30+
- run: npm run test
3131
lint:
3232
name: format and lint
3333
runs-on: ubuntu-latest

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"version": "0.0.1",
44
"scripts": {
55
"prepare": "husky install",
6-
"test": "echo \"Error: no test specified\" && exit 1"
6+
"build": "turbo run build",
7+
"test": "turbo run test",
8+
"format": "turbo run format",
9+
"lint": "turbo run lint"
710
},
811
"devDependencies": {
912
"turbo": "^1.8.3",

turbo.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"dependsOn": ["build"],
1010
"inputs": ["__tests__/**/*.tsx", "__tests__/**/*.ts"]
1111
},
12-
"lint": {}
12+
"format": {},
13+
"lint": {
14+
"dependsOn": ["format"]
15+
}
1316
}
1417
}

0 commit comments

Comments
 (0)