Repository navigation
CLI Integration Tests #4213
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 Integration Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| schedule: | |
| # Run daily at 9am UTC (2am PST / 5am EST) | |
| - cron: '0 9 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| cli: | |
| name: CLI Tests (${{ matrix.os }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build sdk package | |
| working-directory: packages/sdk | |
| run: pnpm build | |
| - name: Build core package | |
| working-directory: packages/core | |
| run: pnpm build | |
| - name: Build package | |
| working-directory: packages/codev | |
| run: pnpm build | |
| - name: Run CLI integration tests | |
| working-directory: packages/codev | |
| run: pnpm exec vitest run --config vitest.cli.config.ts |