mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-03-23 13:40:44 +08:00
39 lines
941 B
YAML
39 lines
941 B
YAML
# Copied from https://github.com/facebook/docusaurus/blob/main/.github/workflows/lint.yml
|
|
name: Typecheck
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
tsc:
|
|
name: Typecheck
|
|
timeout-minutes: 30
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
- name: Set up pnpm
|
|
uses: pnpm/action-setup@v4
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: '25.8.1'
|
|
cache: pnpm
|
|
cache-dependency-path: pnpm-lock.yaml
|
|
- name: Installation
|
|
run: pnpm install --frozen-lockfile
|
|
# Build the shared types in dependent packages.
|
|
- name: Build dependencies
|
|
run: pnpm turbo run build --filter=ui
|
|
- name: Typecheck
|
|
run: pnpm tsc
|