fix: add turbo build in ci

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei 2024-10-26 17:05:27 +08:00
parent 6cb8fee9d4
commit 7b848cd08a
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
4 changed files with 20 additions and 8 deletions

View File

@ -106,7 +106,7 @@ jobs:
- name: Build
if: matrix.os != 'macos-latest'
run: pnpm build
run: turbo run build
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
@ -117,7 +117,7 @@ jobs:
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
KEYCHAIN_PATH: ${{ runner.temp }}/app-signing.keychain-db
run: pnpm build:macos
run: turbo run build:macos
- name: Upload file
uses: actions/upload-artifact@v4

View File

@ -35,8 +35,6 @@ jobs:
run: pnpm install
- name: Format, Lint and Typecheck
run: |
pnpm run format:check
pnpm run typecheck
pnpm run lint
turbo run format:check typecheck lint
- name: Run test
run: pnpm test
run: turbo run test

View File

@ -19,7 +19,7 @@
"scripts": {
"build": "tsup",
"test": "vitest",
"typecheck": "tsup && tsc --noEmit"
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@egoist/tipc": "0.3.2",

View File

@ -8,7 +8,21 @@
"//#build:web": {
"outputs": ["out/**"]
},
"typecheck": {},
"//#build:macos": {
"outputs": ["dist/**", "out/**"]
},
"//#format:check": {},
"//#lint": {},
"test": {},
"@follow/electron-main#build": {
"outputs": ["dist/**"]
},
"typecheck": {
"dependsOn": ["@follow/electron-main#build"]
},
"@follow/server#build": {
"outputs": ["dist/**"]
},
"dev": {
"persistent": true,
"cache": false