name: CI / Tests on: pull_request: branches: ["*"] push: branches: ["main"] merge_group: workflow_dispatch: workflow_call: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true env: FORCE_COLOR: "1" NODE_VERSION: 22.x # You can leverage Remote Caching with Turbo to speed up your builds # @link https://turbo.build/repo/docs/guides/ci-vendors/github-actions TURBO_TEAM: ${{ secrets.TURBO_TEAM }} TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} jobs: test: name: ๐Ÿงช Test runs-on: ubuntu-latest steps: - name: โœ… Checkout code uses: actions/checkout@v5 - name: ๐Ÿ”จ Setup uses: ./tooling/github/setup with: node-version: ${{ env.NODE_VERSION }} - name: ๐Ÿ–Œ๏ธ Format run: pnpm run format - name: ๐Ÿ›ป Lint run: pnpm run lint && pnpm run lint:ws - name: ๐Ÿ“ Typecheck run: pnpm run typecheck - name: ๐Ÿงช Test run: pnpm run test - name: ๐Ÿ“ฆ Build CLI bundle (check size budget) working-directory: apps/cli run: pnpm run build - name: ๐Ÿ”ง CLI smoke โ€” --version + --help run: | node apps/cli/dist/entrypoints/cli.js --version node apps/cli/dist/entrypoints/cli.js --help | head -5