remove unused event interface in cluster-types #1973
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
| name: Knip | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - "*" | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: read | |
| jobs: | |
| knip: | |
| name: knip on ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-22.04 | |
| arch: x64 | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 60 | |
| env: | |
| DO_NOT_TRACK: "1" | |
| TURBOREPO_CACHE: ${{ github.workspace }}/.turbo | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| package-manager-cache: false | |
| - name: Setup pnpm | |
| run: corepack enable | |
| - name: Get pnpm cache directory | |
| shell: bash | |
| run: echo "pnpm_cache_dir=$(pnpm store path)" >> ${GITHUB_ENV} | |
| - name: Use pnpm cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.pnpm_cache_dir }} | |
| key: ${{ matrix.os }}-${{ matrix.arch }}-node-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ matrix.os }}-${{ matrix.arch }}-node- | |
| - name: Use Turborepo cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.TURBOREPO_CACHE }} | |
| key: ${{ matrix.os }}-${{ matrix.arch }}-turborepo-${{ hashFiles('**/package.json', '**/pnpm-lock.yaml', 'turbo.json') }} | |
| restore-keys: | | |
| ${{ matrix.os }}-${{ matrix.arch }}-turborepo- | |
| - name: Install pnpm dependencies | |
| id: install-pnpm | |
| run: timeout 300 pnpm install --color=always --prefer-offline --frozen-lockfile | |
| continue-on-error: true | |
| - name: Install pnpm dependencies (retry) | |
| if: steps.install-pnpm.outcome == 'failure' | |
| run: timeout 300 pnpm install --color=always --prefer-offline --frozen-lockfile | |
| - name: Build packages | |
| run: pnpm --color=always --stream build | |
| - name: Run Knip | |
| run: pnpm --color=always --stream knip:check |