Skip to content

Commit 1a01bc4

Browse files
authored
fix: renovata token (#101)
1 parent 28da844 commit 1a01bc4

3 files changed

Lines changed: 26 additions & 36 deletions

File tree

.github/workflows/cross-platform-tests.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches: [main, develop]
66
pull_request:
7-
branches: [main, develop]
87

98
jobs:
109
test:
@@ -49,13 +48,13 @@ jobs:
4948
run: npm test -- src/__tests__/integration/e2e-scenarios.test.ts
5049

5150
- name: Run config builder comprehensive tests
52-
run: npm test -- config-builder-comprehensive.test.ts
51+
run: npm test -- src/__tests__/config-builder.test.ts
5352

5453
- name: Run template system comprehensive tests
55-
run: npm test -- template-system-comprehensive.test.ts
54+
run: npm test -- src/__tests__/integration/template-loading.test.ts
5655

5756
- name: Run generator comprehensive tests
58-
run: npm test -- generator-comprehensive.test.ts
57+
run: npm test -- src/__tests__/integration/generator.test.ts
5958

6059
- name: Test CLI command (Unix)
6160
if: runner.os != 'Windows'
@@ -114,7 +113,7 @@ jobs:
114113
# Note: Actual scaffolding test would be interactive
115114
# For now, just verify the CLI can be invoked
116115
node dist/index.js --help
117-
echo " CLI is executable and responsive"
116+
echo "[OK] CLI is executable and responsive"
118117
119118
- name: Test scaffolding (Windows)
120119
if: runner.os == 'Windows'
@@ -126,7 +125,7 @@ jobs:
126125
127126
# Verify the CLI can be invoked
128127
node dist/index.js --help
129-
Write-Output " CLI is executable and responsive"
128+
Write-Output "[OK] CLI is executable and responsive"
130129
131130
lint:
132131
runs-on: ubuntu-latest
@@ -175,7 +174,7 @@ jobs:
175174
echo "dist/index.js not found"
176175
exit 1
177176
fi
178-
echo " Build artifacts verified"
177+
echo "[OK] Build artifacts verified"
179178
shell: bash
180179

181180
- name: Verify TypeScript definitions
@@ -184,5 +183,5 @@ jobs:
184183
echo "dist/index.d.ts not found"
185184
exit 1
186185
fi
187-
echo " TypeScript definitions verified"
186+
echo "[OK] TypeScript definitions verified"
188187
shell: bash

.github/workflows/renovate.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,16 @@ jobs:
1414
renovate:
1515
name: Run Renovate Bot
1616
runs-on: ubuntu-latest
17-
env:
18-
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKE }}
1917

2018
steps:
21-
- name: Validate Renovate token
22-
if: ${{ env.RENOVATE_TOKEN == '' }}
23-
run: |
24-
echo "RENOVATE_TOKE is not configured."
25-
echo "Set repository secret RENOVATE_TOKE (fine-grained token with Contents: Read/Write and Pull requests: Read/Write)."
26-
exit 1
27-
2819
- name: Checkout repository
2920
uses: actions/checkout@v4
3021

3122
- name: Run Renovate
3223
uses: renovatebot/github-action@v44.0.3
3324
with:
3425
configurationFile: renovate.json
35-
token: ${{ secrets.RENOVATE_TOKE || github.token }}
26+
token: ${{ github.token }}
3627
env:
3728
LOG_LEVEL: debug
3829
RENOVATE_REPOSITORIES: ${{ github.repository }}

COMPREHENSIVE_TESTS.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Comprehensive testcases have been added to ensure **production-ready quality** a
66

77
## New Test Files Added
88

9-
### 1. **config-builder-comprehensive.test.ts**
9+
### 1. **config-builder.test.ts**
1010

11-
**Location**: `src/__tests__/config-builder-comprehensive.test.ts`
11+
**Location**: `src/__tests__/config-builder.test.ts`
1212

1313
Tests the configuration builder and validation system.
1414

@@ -30,14 +30,14 @@ Tests the configuration builder and validation system.
3030
**Test Cases**: 50+
3131

3232
```bash
33-
npm test -- config-builder-comprehensive.test.ts
33+
npm test -- config-builder.test.ts
3434
```
3535

3636
---
3737

38-
### 2. **template-system-comprehensive.test.ts**
38+
### 2. **integration/template-loading.test.ts**
3939

40-
**Location**: `src/__tests__/template-system-comprehensive.test.ts`
40+
**Location**: `src/__tests__/integration/template-loading.test.ts`
4141

4242
Tests the template registry and template composition system.
4343

@@ -56,14 +56,14 @@ Tests the template registry and template composition system.
5656
**Test Cases**: 40+
5757

5858
```bash
59-
npm test -- template-system-comprehensive.test.ts
59+
npm test -- integration/template-loading.test.ts
6060
```
6161

6262
---
6363

64-
### 3. **generator-comprehensive.test.ts**
64+
### 3. **integration/generator.test.ts**
6565

66-
**Location**: `src/__tests__/generator-comprehensive.test.ts`
66+
**Location**: `src/__tests__/integration/generator.test.ts`
6767

6868
Tests the project generator for actual project creation.
6969

@@ -86,7 +86,7 @@ Tests the project generator for actual project creation.
8686
**Test Cases**: 50+
8787

8888
```bash
89-
npm test -- generator-comprehensive.test.ts
89+
npm test -- integration/generator.test.ts
9090
```
9191

9292
---
@@ -189,18 +189,18 @@ npm test -- src/__tests__/integration/e2e-scenarios.test.ts
189189
6. **Config Builder Comprehensive**
190190

191191
```
192-
npm test -- config-builder-comprehensive.test.ts
192+
npm test -- config-builder.test.ts
193193
```
194194

195195
7. **Template System Comprehensive**
196196

197197
```
198-
npm test -- template-system-comprehensive.test.ts
198+
npm test -- integration/template-loading.test.ts
199199
```
200200

201201
8. **Generator Comprehensive**
202202
```
203-
npm test -- generator-comprehensive.test.ts
203+
npm test -- integration/generator.test.ts
204204
```
205205

206206
### CI Matrix
@@ -223,9 +223,9 @@ npm test
223223
### Specific Test Suite
224224

225225
```bash
226-
npm test -- config-builder-comprehensive.test.ts
227-
npm test -- template-system-comprehensive.test.ts
228-
npm test -- generator-comprehensive.test.ts
226+
npm test -- config-builder.test.ts
227+
npm test -- integration/template-loading.test.ts
228+
npm test -- integration/generator.test.ts
229229
npm test -- src/__tests__/integration/e2e-scenarios.test.ts
230230
```
231231

@@ -310,7 +310,7 @@ The CI workflow automatically:
310310

311311
## What Each Test File Tests
312312

313-
### config-builder-comprehensive.test.ts
313+
### config-builder.test.ts
314314

315315
**Purpose**: Ensure configuration system works correctly
316316

@@ -326,7 +326,7 @@ Tests:
326326

327327
---
328328

329-
### template-system-comprehensive.test.ts
329+
### integration/template-loading.test.ts
330330

331331
**Purpose**: Ensure templates load correctly for all configs
332332

@@ -341,7 +341,7 @@ Tests:
341341

342342
---
343343

344-
### generator-comprehensive.test.ts
344+
### integration/generator.test.ts
345345

346346
**Purpose**: Ensure projects are generated correctly
347347

0 commit comments

Comments
 (0)