This repository was archived by the owner on Jul 4, 2026. It is now read-only.
fix: improve text rendering in prompts and enhance ANSI stripping #170
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: CI/CD Pipeline | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-and-test: | |
| name: Node ${{ matrix.node-version }} - ${{ matrix.package-manager }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x] | |
| package-manager: [npm, pnpm, yarn] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: ${{ matrix.package-manager }} install | |
| - name: Build package | |
| run: ${{ matrix.package-manager }} run build | |
| - name: Smoke test built artifact | |
| run: | | |
| mkdir -p test-logs | |
| node dist/create-next-quick.js --version > test-logs/smoke-test.txt 2>&1 | |
| if [ $? -ne 0 ]; then cat test-logs/smoke-test.txt; exit 1; fi | |
| cat test-logs/smoke-test.txt | |
| - name: Run tests and save logs | |
| run: | | |
| mkdir -p test-logs | |
| ${{ matrix.package-manager }} test > test-logs/log.txt 2>&1 | |
| - name: Verify test success | |
| run: grep "Tests passed successfully" test-logs/log.txt | |
| - name: Print test logs | |
| run: cat test-logs/log.txt | |
| - name: Upload test logs | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-logs-${{ matrix.node-version }}-${{ matrix.package-manager }} | |
| path: test-logs/log.txt | |
| retention-days: 5 |