Skip to content

Commit 6da8662

Browse files
committed
Aggiungi linee guida per testare il codice prima del rilascio
1 parent 3cec2f4 commit 6da8662

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

docs/DEPLOYMENT.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,33 @@ Current Version ID: <version-id>
170170

171171
---
172172

173+
## **Important: Test Before Release**
174+
175+
To avoid premature releases, always follow this order:
176+
177+
1. **Apply code changes**
178+
2. **Run tests locally**
179+
```bash
180+
npm test
181+
```
182+
3. **Deploy to Workers for validation**
183+
```bash
184+
npm run deploy
185+
```
186+
4. **Run live smoke tests**
187+
- `/health`
188+
- `tools/list`
189+
- At least one real tool call (e.g. `ckan_get_mqa_quality`)
190+
5. **Only after everything passes**:
191+
- bump version
192+
- commit + tag
193+
- GitHub release
194+
- npm publish
195+
196+
**Rule of thumb**: *release only when the live deployment is confirmed working.*
197+
198+
---
199+
173200
### Step 7: Test Production Deployment
174201

175202
Test your live Workers endpoint:

0 commit comments

Comments
 (0)