fix type dependencies #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request_target: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| paths: | |
| - "packages/**" | |
| - "samples/**" | |
| - "serverless/**" | |
| - "servers/**" | |
| - "starters/**" | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| - "pnpm-workspace.yaml" | |
| - "*.json" | |
| - "*.js" | |
| - "*.ts" | |
| - "*.yaml" | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| verify-and-build: | |
| runs-on: [ubuntu-latest] | |
| if: (!github.event.pull_request || github.event.pull_request.draft == false) | |
| env: | |
| CI: false | |
| NODE_OPTIONS: --max-old-space-size=4096 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| name: Install pnpm | |
| with: | |
| run_install: false | |
| - name: Use node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| shell: bash | |
| run: pnpm install --frozen-lockfile | |
| - name: build all packages | |
| run: pnpm build | |
| - name: Check code Style | |
| run: pnpm lint-format | |
| - name: Execute Linter | |
| run: pnpm lint | |
| - name: type checking # Check this later on to run typecheck:full instead to check transitive dependencies as well | |
| run: pnpm typecheck | |
| - name: verify type dependencies | |
| run: pnpm nodeboot:check:type-deps | |
| - name: ensure clean working directory | |
| run: | | |
| if files=$(git ls-files --exclude-standard --others --modified) && [[ -z "$files" ]]; then | |
| exit 0 | |
| else | |
| echo "" | |
| echo "Working directory has been modified:" | |
| echo "" | |
| git status --short | |
| echo "" | |
| exit 1 | |
| fi |