refactor: move development scripts from Scripts to Tools directory (#881)

This commit is contained in:
Jeffrey
2026-11-08 03:40:35 +01:00
committed by GitHub
parent 5d88bfe9ef
commit 156e2517d4
7 changed files with 23 additions and 20 deletions
+5 -3
View File
@@ -65,13 +65,13 @@ The automated tests use Pester 5 and are found in the `Tests` directory. They co
The bootstrap option can be used to automatically install Pester on your machine and run the full suite of tests:
```powershell
.\Scripts\Run-Tests.ps1 -Bootstrap
.\Tools\Run-Tests.ps1 -Bootstrap
```
After the initial setup, you can simply run the full suite with:
```powershell
.\Scripts\Run-Tests.ps1
.\Tools\Run-Tests.ps1
```
For a focused test run during development, you can also call Pester directly:
@@ -124,7 +124,6 @@ Win11Debloat/
├── Run.bat # Local launcher
├── Scripts/ # Additional PowerShell scripts and functions
│ ├── Get.ps1 # Download-and-launch script
│ ├── Run-Tests.ps1 # Pester test runner (optionally bootstraps Pester)
│ ├── AppRemoval/ # App package removal logic
│ ├── CLI/ # Command-line interface helpers
│ ├── Features/ # Feature apply, undo, backup, and restore logic
@@ -143,6 +142,9 @@ Win11Debloat/
│ └── Sysprep/ # Registry files for Sysprep mode
├── Schemas/ # XAML views and shared GUI resources
├── Assets/ # Static assets (icons, start menu templates)
├── Tools/ # Development scripts (excluded from release packages)
│ ├── Build-Release.ps1 # Runtime release packaging
│ └── Run-Tests.ps1 # Pester test runner (optionally bootstraps Pester)
├── Tests/ # Pester tests for script and XAML contracts
├── Backups/ # Registry backups (generated during use)
└── Logs/ # Script logs (generated during use)
+2 -2
View File
@@ -54,7 +54,7 @@ jobs:
shell: powershell
run: |
$global:LASTEXITCODE = 0
./Scripts/Run-Tests.ps1 -Bootstrap
./Tools/Run-Tests.ps1 -Bootstrap
if ($LASTEXITCODE -ne 0) { throw 'Release tests failed.' }
- name: Commit version and create release tag
@@ -90,7 +90,7 @@ jobs:
shell: powershell
run: |
$source = @(Get-ChildItem release-source -Directory)[0].FullName
& (Join-Path $source 'Scripts/Build-Release.ps1') -SourcePath $source -Version $env:RELEASE_TAG -OutputDirectory release-assets
& (Join-Path $source 'Tools/Build-Release.ps1') -SourcePath $source -Version $env:RELEASE_TAG -OutputDirectory release-assets
- name: Create draft release
shell: powershell
+1 -1
View File
@@ -23,7 +23,7 @@ jobs:
- name: Run tests
shell: powershell
run: ./Scripts/Run-Tests.ps1 -Bootstrap
run: ./Tools/Run-Tests.ps1 -Bootstrap
psscriptanalyzer:
name: PSScriptAnalyzer (Error severity)