@@ -89,11 +89,14 @@ jobs:
8989 $fileContent = Get-Content -Path "./template-output/README.md" -Raw
9090 $contentLength = $fileContent.Length
9191 Write-Host "README.md file size: $contentLength bytes"
92- } else {
92+ }
93+ else {
9394 Write-Error "README.md was not copied correctly"
9495 }
95- } else {
96+ }
97+ else {
9698 Write-Error "README.template.md not found in template-src directory"
99+ }
97100
98101 - name : Copy and update .nuspec file
99102 shell : pwsh
@@ -129,7 +132,8 @@ jobs:
129132 $filePath = "./template-output/$file"
130133 if (Test-Path $filePath) {
131134 Write-Host "✅ $file exists"
132- } else {
135+ }
136+ else {
133137 Write-Host "❌ $file is missing"
134138 # Create empty file if missing to prevent template validation errors
135139 New-Item -Path $filePath -ItemType File -Force
@@ -146,7 +150,8 @@ jobs:
146150 $dirPath = "./template-output/$dir"
147151 if (Test-Path $dirPath) {
148152 Write-Host "✅ $dir directory exists"
149- } else {
153+ }
154+ else {
150155 Write-Host "❌ $dir directory is missing"
151156 # Create directory if missing
152157 New-Item -Path $dirPath -ItemType Directory -Force
@@ -179,8 +184,10 @@ jobs:
179184 $readmePath = "$extractPath/CleanArchitecture.FullStack.Template/README.md"
180185 if (Test-Path $readmePath) {
181186 Write-Host "✅ README.md exists in the NuGet package"
182- } else {
187+ }
188+ else {
183189 Write-Error "❌ README.md is missing from the NuGet package"
190+ }
184191
185192 - name : Test template package
186193 run : |
@@ -245,7 +252,8 @@ jobs:
245252
246253 if (Test-Path "YourCompany.TestProject") {
247254 Write-Host "✅ YourCompany.TestProject folder created successfully"
248- } else {
255+ }
256+ else {
249257 Write-Error "❌ YourCompany.TestProject folder not created"
250258 exit 1
251259 }
@@ -255,7 +263,8 @@ jobs:
255263
256264 if (Test-Path "TestProjectNoOrg") {
257265 Write-Host "✅ TestProjectNoOrg folder created successfully"
258- } else {
266+ }
267+ else {
259268 Write-Error "❌ TestProjectNoOrg folder not created"
260269 exit 1
261270 }
@@ -265,7 +274,8 @@ jobs:
265274
266275 if (Test-Path "CustomFolder") {
267276 Write-Host "✅ CustomFolder created successfully"
268- } else {
277+ }
278+ else {
269279 Write-Error "❌ CustomFolder not created"
270280 exit 1
271281 }
0 commit comments