File size: 2,014 Bytes
cc38116
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# GSD Master Validation Script
# Runs all validators and reports overall status

$TotalErrors = 0

Write-Host ""
Write-Host "╔═══════════════════════════════════════════════════════╗" -ForegroundColor Magenta
Write-Host "β•‘         GSD β–Ί RUNNING ALL VALIDATORS                  β•‘" -ForegroundColor Magenta
Write-Host "β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•" -ForegroundColor Magenta
Write-Host ""

# Run workflow validator
Write-Host "β–Ά Running workflow validation..." -ForegroundColor Cyan
& "$PSScriptRoot\validate-workflows.ps1"
if ($LASTEXITCODE -ne 0) { $TotalErrors++ }
Write-Host ""

# Run skill validator
Write-Host "β–Ά Running skill validation..." -ForegroundColor Cyan
& "$PSScriptRoot\validate-skills.ps1"
if ($LASTEXITCODE -ne 0) { $TotalErrors++ }
Write-Host ""

# Run template validator
Write-Host "β–Ά Running template validation..." -ForegroundColor Cyan
& "$PSScriptRoot\validate-templates.ps1"
if ($LASTEXITCODE -ne 0) { $TotalErrors++ }
Write-Host ""

# Summary
Write-Host "╔═══════════════════════════════════════════════════════╗" -ForegroundColor Magenta
Write-Host "β•‘                    SUMMARY                            β•‘" -ForegroundColor Magenta
Write-Host "β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•" -ForegroundColor Magenta
Write-Host ""

if ($TotalErrors -eq 0) {
    Write-Host "βœ… All validators passed!" -ForegroundColor Green
    exit 0
} else {
    Write-Host "❌ $TotalErrors validator(s) failed" -ForegroundColor Red
    exit 1
}