TypeScript Migration and Modernization #2
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: TS Migration CI | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, edited] | |
| jobs: | |
| build-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - run: npm ci | |
| - name: Phase verify (lint + strict typecheck + tests) | |
| run: ENABLE_TYPECHECK=1 node scripts/phases-verify.mjs | |
| - name: Generate migration progress | |
| run: node scripts/migration-progress.mjs | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: migration-progress | |
| path: MIGRATION_PROGRESS.md | |
| checkpoint: | |
| if: contains(github.event.pull_request.title, '[checkpoint]') | |
| runs-on: ubuntu-latest | |
| needs: build-test | |
| environment: ts-migration-checkpoint | |
| steps: | |
| - run: | | |
| echo "Checkpoint gate active." | |
| echo "A maintainer must approve the 'ts-migration-checkpoint' environment to proceed." |