fix(node-ui): improve context graph contrast #1468
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: Knip (dead-code baseline) | |
| # Warn-only dead-code scan. Runs on every PR and on pushes to protected | |
| # branches. Intentionally uses --no-exit-code so the job always reports | |
| # "success"; the point is to surface regressions in PR summaries, not to | |
| # block merges. Once the baseline is fully clean we can flip this to a | |
| # blocker by removing --no-exit-code and adding the job to the required | |
| # status checks. | |
| # | |
| # Config lives in knip.json at the repo root. Known false-positives (e.g. | |
| # Solidity-only deps that knip can't parse) belong in knip.json's | |
| # `ignoreDependencies`, not here. | |
| on: | |
| push: | |
| branches: [main, v10-rc] | |
| pull_request: | |
| branches: [main, v10-rc] | |
| workflow_dispatch: | |
| concurrency: | |
| group: knip-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| # Minimum-needed token scope (see ci.yml header for rationale). | |
| permissions: | |
| contents: read | |
| jobs: | |
| knip: | |
| name: Knip dead-code report | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| persist-credentials: false | |
| - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run knip (warn-only) | |
| # --no-exit-code : never fail the job (warn-only while we burn | |
| # down the baseline) | |
| # --reporter : compact, deterministic output, easy to diff | |
| run: pnpm exec knip --no-exit-code --reporter compact |