Repository navigation
perf(i18n): every core component renders with its own English slice #604
Workflow file for this run
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
| # Copyright (c) Meta Platforms, Inc. and affiliates. | |
| # Codemod verification — ensures codemods can reproduce callsite changes | |
| # | |
| # When a PR adds/modifies codemods AND touches consumer code (apps/, stories), | |
| # this workflow: | |
| # 1. Reverts the consumer code changes to the base branch state | |
| # 2. Runs the codemods from source against that reverted code | |
| # 3. Verifies the codemod output matches the PR's committed changes | |
| # | |
| # This enforces the rule: "never manually update callsites — always use the codemod" | |
| # If the codemod can't reproduce the changes, either the codemod is incomplete | |
| # or callsites were hand-edited. | |
| name: Codemod Verify | |
| on: | |
| pull_request: | |
| branches: ["main"] | |
| paths: | |
| - "packages/cli/assets/codemods/**" | |
| permissions: {} | |
| concurrency: | |
| group: "codemod-verify-${{ github.event.pull_request.number }}" | |
| cancel-in-progress: true | |
| jobs: | |
| verify-codemods: | |
| runs-on: 2-core-ubuntu-arm | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - name: Checkout PR | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/setup | |
| - name: Verify codemod reproduces callsite changes | |
| id: verify | |
| run: node .github/scripts/codemod-verify.mjs |