Skip to content

Commit

Permalink
chore(turbo): add remote cache to reduce duplicated ci or build
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli committed Nov 4, 2023
1 parent 933c43e commit b0aa945
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ on:
- main
pull_request:
types: [opened, synchronize, reopened]

env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
- main
pull_request:
types: [opened, synchronize, reopened]
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
quality:
Expand Down
12 changes: 6 additions & 6 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"build": { "dependsOn": ["^build"], "outputs": ["dist/**", ".next/**", "build/**"] },
"build:watch": { "outputs": ["dist/**"] },
"npm:publish": { "dependsOn": ["^build"] },
"lint": { "cache": false },
"lint:attw": { "dependsOn": ["^build"], "cache": false },
"lint:pub": { "cache": false },
"test": { "dependsOn": ["^build"], "outputs": ["coverage/**"], "cache": false },
"lint": {},
"lint:attw": { "dependsOn": ["^build"] },
"lint:pub": {},
"test": { "dependsOn": ["^build"], "outputs": ["coverage/**"] },
"test:tsd": {},
"test:watch": { "cache": false },
"test:watch": {},
"prepack": { "dependsOn": ["^prepack"], "cache": false },
"dev": { "dependsOn": ["^prepack"], "cache": false },
"dev": { "dependsOn": ["^prepack"] },
"type:check": { "dependsOn": ["^build"] }
},
"globalEnv": ["NODE_ENV"]
Expand Down

0 comments on commit b0aa945

Please sign in to comment.