Version packages (#2553) #525
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: CLI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'packages/cli/**' | |
| - 'packages/core/**' | |
| - 'packages/runner/**' | |
| - '.github/workflows/cli.yml' | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'packages/cli/**' | |
| - 'packages/core/**' | |
| - 'packages/runner/**' | |
| - '.github/workflows/cli.yml' | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| NEXT_TELEMETRY_DISABLED: 1 # Disable Next.js telemetry | |
| TURBO_TELEMETRY_DISABLED: 1 # Disable Turbo telemetry | |
| jobs: | |
| CLI: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: 'pnpm' | |
| - name: Setup turborepo caching | |
| uses: rharkor/caching-for-turbo@v2.3.11 | |
| - name: Download deps | |
| run: pnpm install | |
| working-directory: '${{ github.workspace }}/packages/cli' | |
| - name: Build | |
| run: pnpm turbo run build | |
| working-directory: '${{ github.workspace }}/packages/cli' | |
| - name: Lint | |
| run: pnpm turbo run lint | |
| working-directory: '${{ github.workspace }}/packages/cli' | |
| - name: Test | |
| run: pnpm turbo run test | |
| working-directory: '${{ github.workspace }}/packages/cli' |