feat: add turbo repo caching to github CI

pull/715/head
Travis Fischer 2025-06-12 05:54:29 +07:00
rodzic df0964bf29
commit 67822be4ec
1 zmienionych plików z 12 dodań i 2 usunięć

Wyświetl plik

@ -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