Skip to content

feat: playground

feat: playground #74

Workflow file for this run

name: BTST Init CLI
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'packages/cli/**'
- 'docs/content/docs/cli.mdx'
- 'docs/content/docs/installation.mdx'
- '.github/workflows/init.yml'
concurrency:
group: init-cli-${{ github.ref }}
cancel-in-progress: true
jobs:
init-smoke:
name: Init smoke (nextjs + memory)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- name: Setup Node.js 22
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build @btst/stack
run: pnpm --filter @btst/stack build
- name: Build @btst/codegen
run: pnpm --filter @btst/codegen build
- name: Run init harness
working-directory: packages/cli
run: bash scripts/test-init.sh
timeout-minutes: 20
env:
CI: true
- name: Upload artifacts on failure
if: failure()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: btst-init-fixtures
path: /tmp/test-btst-init-*/
retention-days: 3