Skip to content

Merge branch 'corel' into corel-168-2 #21231

Merge branch 'corel' into corel-168-2

Merge branch 'corel' into corel-168-2 #21231

Workflow file for this run

name: Type check
on:
push:
jobs:
typeCheck:
timeout-minutes: 15
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Cache node modules
id: cache-node-modules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
v1-${{ runner.os }}-pnpm-store-${{ env.cache-name }}-
v1-${{ runner.os }}-pnpm-store-
v1-${{ runner.os }}-
- name: Install project dependencies
run: pnpm install
- name: Check type system
# Turbo will run type checks on all files in the project
# and ensure that dependencies are built with @sanity/pkg-utils to output dts
# used by other packages as they are type checked
id: typeCheckModules
run: pnpm check:types --output-logs=full --log-order=grouped
env:
NODE_OPTIONS: --max_old_space_size=8192