kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: add turbo repo caching to github CI
rodzic
df0964bf29
commit
67822be4ec
|
@ -12,8 +12,10 @@ jobs:
|
|||
matrix:
|
||||
node-version:
|
||||
- 22
|
||||
- 23
|
||||
- 24
|
||||
|
||||
env:
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
@ -23,6 +25,14 @@ jobs:
|
|||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Cache turbo build setup
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-${{ matrix.node-version }}-turbo-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-${{ matrix.node-version }}-turbo-
|
||||
|
||||
- run: pnpm install --frozen-lockfile --strict-peer-dependencies
|
||||
- run: pnpm build
|
||||
- run: pnpm test
|
||||
|
|
Ładowanie…
Reference in New Issue