diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 95d0eb021..6761c0434 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,4 @@ -name: Lint +name: Lint & Typecheck on: push: branches: @@ -6,6 +6,24 @@ on: pull_request: jobs: + typecheck: + name: Typecheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: 'yarn' + env: + SKIP_YARN_COREPACK_CHECK: '1' + - name: Enable corepack + run: corepack enable + - name: Install dependencies + run: yarn + - name: Typecheck + run: yarn typecheck + lint: name: Lint runs-on: ubuntu-latest