fix: make monorepo checks and caching consistent

This commit is contained in:
Amruth Pillai
2026-09-30 22:32:05 +02:00
parent bec152b7e9
commit 0bdf8066cd
61 changed files with 814 additions and 449 deletions
+16
View File
@@ -51,12 +51,14 @@ jobs:
uses: actions/checkout@v6
with:
persist-credentials: false
fetch-depth: 0
- name: Checkout Repository (Blacksmith)
if: ${{ vars.USE_BLACKSMITH == 'true' }}
uses: useblacksmith/checkout@v1
with:
persist-credentials: false
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v6
@@ -67,9 +69,23 @@ jobs:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Cache Turbo artifacts
uses: actions/cache@v5
with:
path: .turbo/cache
key: ${{ runner.os }}-${{ runner.arch }}-turbo-${{ github.workflow }}-${{ hashFiles('pnpm-lock.yaml', '.nvmrc') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-turbo-${{ github.workflow }}-${{ hashFiles('pnpm-lock.yaml', '.nvmrc') }}-
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Check Package Boundaries
run: pnpm exec turbo boundaries
- name: Typecheck Affected Packages
run: pnpm exec turbo run typecheck --affected
- name: Install Playwright Browser
timeout-minutes: 10
run: pnpm exec playwright install --with-deps chromium
+8
View File
@@ -49,6 +49,14 @@ jobs:
with:
node-version-file: .nvmrc
cache: pnpm
- name: Cache Turbo artifacts
uses: actions/cache@v5
with:
path: .turbo/cache
key: ${{ runner.os }}-${{ runner.arch }}-turbo-${{ github.workflow }}-${{ hashFiles('pnpm-lock.yaml', '.nvmrc') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-turbo-${{ github.workflow }}-${{ hashFiles('pnpm-lock.yaml', '.nvmrc') }}-
- run: pnpm install --frozen-lockfile
# Local project settings avoid authentication and API calls. Forks receive no cloud credentials.
- name: Build Vercel artifact against isolated PostgreSQL