Skip to content

fix: generate routes before lint and typcheck steps in ci #3

fix: generate routes before lint and typcheck steps in ci

fix: generate routes before lint and typcheck steps in ci #3

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
lint:
runs-on: ubuntu-latest
name: Run ESLint
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- run: pnpm tsr:generate
- run: pnpm lint
format:
runs-on: ubuntu-latest
name: Run Prettier check
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- run: pnpm format:check
tsc:
runs-on: ubuntu-latest
name: Run Typechecker
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- run: pnpm tsr:generate
- run: pnpm typecheck