feat(renderer): add steps and tabs MDX components #188
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: Templates E2E | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| templates-e2e: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [24] | |
| template: [minimal, standard, complete] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --no-frozen-lockfile | |
| - name: Build local clarify CLI | |
| run: pnpm run build | |
| - name: Configure pnpm global binaries | |
| run: | | |
| echo "PNPM_HOME=$HOME/.local/share/pnpm" >> $GITHUB_ENV | |
| echo "$HOME/.local/share/pnpm" >> $GITHUB_PATH | |
| pnpm config set global-bin-dir "$HOME/.local/share/pnpm" --location global | |
| - name: Install local clarify globally | |
| working-directory: packages/cli | |
| run: pnpm add --global . | |
| - name: Verify global clarify | |
| run: clarify --help | |
| - name: Create temp project | |
| run: | | |
| rm -rf .github/.template-test | |
| mkdir -p .github/.template-test | |
| - name: Run global clarify init for template | |
| working-directory: .github/.template-test | |
| run: clarify init --template ${{ matrix.template }} | |
| - name: Link local @clarify-labs/cli into template project | |
| working-directory: .github/.template-test | |
| run: pnpm link ../../packages/cli | |
| - name: Install template project dependencies | |
| working-directory: .github/.template-test | |
| run: pnpm install --no-frozen-lockfile | |
| - name: Build generated template project | |
| working-directory: .github/.template-test | |
| run: clarify build | |
| - name: Validate generated files | |
| working-directory: .github/.template-test | |
| run: | | |
| test -f package.json | |
| test -d source || true |