Enhance project setup: add vitest for testing, update .gitignore to include .pnpm-store, and improve README with authentication options and usage instructions. Introduce new files for ESLint and PostCSS configurations, and create a template for a C1 App with Next.js. #22
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 | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Test on ${{ matrix.os }} with Node ${{ matrix.node-version }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| node-version: [20.9, 22, 24] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run linting | |
| if: matrix.os == 'ubuntu-latest' && matrix.node-version == '24' | |
| run: pnpm run lint | |
| - name: Test CLI execution (Unix) | |
| if: runner.os != 'Windows' | |
| run: | | |
| pnpm run build | |
| node bin/create-c1-app --project-name my-thesys-component --template template-c1-component-next --api-key your-api-key-here | |
| - name: Test CLI execution (Windows) | |
| if: runner.os == 'Windows' | |
| run: | | |
| pnpm run build | |
| node bin/create-c1-app --project-name my-thesys-component --template template-c1-component-next --api-key your-api-key-here | |
| shell: cmd |