diff --git a/.github/workflows/cross-platform-tests.yml b/.github/workflows/cross-platform-tests.yml index c193903..e9808a4 100644 --- a/.github/workflows/cross-platform-tests.yml +++ b/.github/workflows/cross-platform-tests.yml @@ -4,7 +4,6 @@ on: push: branches: [main, develop] pull_request: - branches: [main, develop] jobs: test: @@ -49,13 +48,13 @@ jobs: run: npm test -- src/__tests__/integration/e2e-scenarios.test.ts - name: Run config builder comprehensive tests - run: npm test -- config-builder-comprehensive.test.ts + run: npm test -- src/__tests__/config-builder.test.ts - name: Run template system comprehensive tests - run: npm test -- template-system-comprehensive.test.ts + run: npm test -- src/__tests__/integration/template-loading.test.ts - name: Run generator comprehensive tests - run: npm test -- generator-comprehensive.test.ts + run: npm test -- src/__tests__/integration/generator.test.ts - name: Test CLI command (Unix) if: runner.os != 'Windows' @@ -114,7 +113,7 @@ jobs: # Note: Actual scaffolding test would be interactive # For now, just verify the CLI can be invoked node dist/index.js --help - echo "✓ CLI is executable and responsive" + echo "[OK] CLI is executable and responsive" - name: Test scaffolding (Windows) if: runner.os == 'Windows' @@ -126,7 +125,7 @@ jobs: # Verify the CLI can be invoked node dist/index.js --help - Write-Output "✓ CLI is executable and responsive" + Write-Output "[OK] CLI is executable and responsive" lint: runs-on: ubuntu-latest @@ -175,7 +174,7 @@ jobs: echo "dist/index.js not found" exit 1 fi - echo "✓ Build artifacts verified" + echo "[OK] Build artifacts verified" shell: bash - name: Verify TypeScript definitions @@ -184,5 +183,5 @@ jobs: echo "dist/index.d.ts not found" exit 1 fi - echo "✓ TypeScript definitions verified" + echo "[OK] TypeScript definitions verified" shell: bash diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 91544b0..0056d95 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -14,17 +14,8 @@ jobs: renovate: name: Run Renovate Bot runs-on: ubuntu-latest - env: - RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKE }} steps: - - name: Validate Renovate token - if: ${{ env.RENOVATE_TOKEN == '' }} - run: | - echo "RENOVATE_TOKE is not configured." - echo "Set repository secret RENOVATE_TOKE (fine-grained token with Contents: Read/Write and Pull requests: Read/Write)." - exit 1 - - name: Checkout repository uses: actions/checkout@v4 @@ -32,7 +23,7 @@ jobs: uses: renovatebot/github-action@v44.0.3 with: configurationFile: renovate.json - token: ${{ secrets.RENOVATE_TOKE || github.token }} + token: ${{ github.token }} env: LOG_LEVEL: debug RENOVATE_REPOSITORIES: ${{ github.repository }} diff --git a/COMPREHENSIVE_TESTS.md b/COMPREHENSIVE_TESTS.md index a8257a8..a5684c2 100644 --- a/COMPREHENSIVE_TESTS.md +++ b/COMPREHENSIVE_TESTS.md @@ -6,9 +6,9 @@ Comprehensive testcases have been added to ensure **production-ready quality** a ## New Test Files Added -### 1. **config-builder-comprehensive.test.ts** +### 1. **config-builder.test.ts** -**Location**: `src/__tests__/config-builder-comprehensive.test.ts` +**Location**: `src/__tests__/config-builder.test.ts` Tests the configuration builder and validation system. @@ -30,14 +30,14 @@ Tests the configuration builder and validation system. **Test Cases**: 50+ ```bash -npm test -- config-builder-comprehensive.test.ts +npm test -- config-builder.test.ts ``` --- -### 2. **template-system-comprehensive.test.ts** +### 2. **integration/template-loading.test.ts** -**Location**: `src/__tests__/template-system-comprehensive.test.ts` +**Location**: `src/__tests__/integration/template-loading.test.ts` Tests the template registry and template composition system. @@ -56,14 +56,14 @@ Tests the template registry and template composition system. **Test Cases**: 40+ ```bash -npm test -- template-system-comprehensive.test.ts +npm test -- integration/template-loading.test.ts ``` --- -### 3. **generator-comprehensive.test.ts** +### 3. **integration/generator.test.ts** -**Location**: `src/__tests__/generator-comprehensive.test.ts` +**Location**: `src/__tests__/integration/generator.test.ts` Tests the project generator for actual project creation. @@ -86,7 +86,7 @@ Tests the project generator for actual project creation. **Test Cases**: 50+ ```bash -npm test -- generator-comprehensive.test.ts +npm test -- integration/generator.test.ts ``` --- @@ -189,18 +189,18 @@ npm test -- src/__tests__/integration/e2e-scenarios.test.ts 6. **Config Builder Comprehensive** ``` - npm test -- config-builder-comprehensive.test.ts + npm test -- config-builder.test.ts ``` 7. **Template System Comprehensive** ``` - npm test -- template-system-comprehensive.test.ts + npm test -- integration/template-loading.test.ts ``` 8. **Generator Comprehensive** ``` - npm test -- generator-comprehensive.test.ts + npm test -- integration/generator.test.ts ``` ### CI Matrix @@ -223,9 +223,9 @@ npm test ### Specific Test Suite ```bash -npm test -- config-builder-comprehensive.test.ts -npm test -- template-system-comprehensive.test.ts -npm test -- generator-comprehensive.test.ts +npm test -- config-builder.test.ts +npm test -- integration/template-loading.test.ts +npm test -- integration/generator.test.ts npm test -- src/__tests__/integration/e2e-scenarios.test.ts ``` @@ -310,7 +310,7 @@ The CI workflow automatically: ## What Each Test File Tests -### config-builder-comprehensive.test.ts +### config-builder.test.ts **Purpose**: Ensure configuration system works correctly @@ -326,7 +326,7 @@ Tests: --- -### template-system-comprehensive.test.ts +### integration/template-loading.test.ts **Purpose**: Ensure templates load correctly for all configs @@ -341,7 +341,7 @@ Tests: --- -### generator-comprehensive.test.ts +### integration/generator.test.ts **Purpose**: Ensure projects are generated correctly