Skip to content

Commit a55a07a

Browse files
committed
Update webroot-matrix.yml
1 parent d893991 commit a55a07a

1 file changed

Lines changed: 10 additions & 35 deletions

File tree

.github/workflows/webroot-matrix.yml

Lines changed: 10 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ jobs:
5353
foreach ($w in $webroots) {
5454
foreach ($e in $executes) {
5555
Write-Host "Testing webroot=$w execute=$e"
56-
$result = ant -buildfile build.xml -Dwebroot=$w -Dexecute="$e" -DuniqueWorkingDir=true 2>&1
56+
$result = ant -buildfile build.xml -Dwebroot=$w -Dexecute="$e" -DpreCleanup=false -DpostCleanup=false 2>&1
5757
if ($LASTEXITCODE -ne 0) {
58-
$cmd = "ant -buildfile build.xml -Dwebroot=$w -Dexecute='$e' -DuniqueWorkingDir=true"
58+
$cmd = "ant -buildfile build.xml -Dwebroot=$w -Dexecute='$e' -DpreCleanup=false -DpostCleanup=false"
5959
$platform = "macos-latest"
6060
shell: pwsh
6161
run: |
@@ -94,21 +94,16 @@ jobs:
9494
for w in "${webroots[@]}"; do
9595
for e in "${executes[@]}"; do
9696
echo "Testing webroot=$w execute=$e"
97-
result=$(ant -buildfile build.xml -Dwebroot=$w -Dexecute="$e" -DuniqueWorkingDir=true 2>&1)
97+
result=$(ant -buildfile build.xml -Dwebroot=$w -Dexecute="$e" -DpreCleanup=false -DpostCleanup=false 2>&1)
9898
if [ $? -ne 0 ]; then
99-
cmd="ant -buildfile build.xml -Dwebroot=$w -Dexecute=\"$e\" -DuniqueWorkingDir=true"
99+
cmd="ant -buildfile build.xml -Dwebroot=$w -Dexecute=\"$e\" -DpreCleanup=false -DpostCleanup=false"
100100
platform="macos-latest"
101101
shell="bash"
102102
echo -e "## Platform: $platform | Shell: $shell\n### $cmd\n\`\`\`\nFAILED: $w / $e\n$result\n\`\`\`\n" >> "$GITHUB_STEP_SUMMARY"
103103
fi
104104
done
105105
done
106106
working-directory: ${{ github.workspace }}
107-
- name: Check output
108-
shell: bash
109-
run: |
110-
grep 'webroot test:' logs/* || (echo 'webroot test output not found' && exit 1)
111-
working-directory: ${{ github.workspace }}
112107

113108
macos-pwsh:
114109
name: MacOS PowerShell
@@ -135,11 +130,6 @@ jobs:
135130
$shell = "pwsh"
136131
"## Platform: $platform | Shell: $shell`n### $cmd`n```
137132
working-directory: ${{ github.workspace }}
138-
- name: Check output
139-
shell: pwsh
140-
run: |
141-
Select-String 'webroot test:' logs/* | Out-Null; if ($LASTEXITCODE -ne 0) { Write-Host 'webroot test output not found'; exit 1 }
142-
working-directory: ${{ github.workspace }}
143133

144134
windows-cmd:
145135
name: Windows CMD
@@ -159,9 +149,9 @@ jobs:
159149
for %%w in (%webroots%) do (
160150
for %%e in (%executes%) do (
161151
echo Testing webroot=%%w execute=%%e
162-
ant -buildfile build.xml -Dwebroot=%%w -Dexecute=%%e -DuniqueWorkingDir=true > result.txt 2>&1
152+
ant -buildfile build.xml -Dwebroot=%%w -Dexecute=%%e -DpreCleanup=false -DpostCleanup=false > result.txt 2>&1
163153
if errorlevel 1 (
164-
set cmd=ant -buildfile build.xml -Dwebroot=%%w -Dexecute="%%e" -DuniqueWorkingDir=true
154+
set cmd=ant -buildfile build.xml -Dwebroot=%%w -Dexecute="%%e" -DpreCleanup=false -DpostCleanup=false
165155
echo ## Platform: windows-latest ^| Shell: cmd>> %GITHUB_STEP_SUMMARY%
166156
echo ### %cmd%>> %GITHUB_STEP_SUMMARY%
167157
echo "```" >> %GITHUB_STEP_SUMMARY%
@@ -173,11 +163,6 @@ jobs:
173163
)
174164
)
175165
working-directory: ${{ github.workspace }}
176-
- name: Check output
177-
shell: cmd
178-
run: |
179-
findstr "webroot test:" logs\* || (echo webroot test output not found && exit 1)
180-
working-directory: ${{ github.workspace }}
181166

182167
windows-pwsh:
183168
name: Windows PowerShell
@@ -197,9 +182,9 @@ jobs:
197182
foreach ($w in $webroots) {
198183
foreach ($e in $executes) {
199184
Write-Host "Testing webroot=$w execute=$e"
200-
$result = ant -buildfile build.xml -Dwebroot=$w -Dexecute="$e" -DuniqueWorkingDir=true 2>&1
185+
$result = ant -buildfile build.xml -Dwebroot=$w -Dexecute="$e" -DpreCleanup=false -DpostCleanup=false 2>&1
201186
if ($LASTEXITCODE -ne 0) {
202-
$cmd = "ant -buildfile build.xml -Dwebroot=$w -Dexecute='$e' -DuniqueWorkingDir=true"
187+
$cmd = "ant -buildfile build.xml -Dwebroot=$w -Dexecute='$e' -DpreCleanup=false -DpostCleanup=false"
203188
$platform = "windows-latest"
204189
$shell = "pwsh"
205190
$summary = @()
@@ -214,11 +199,6 @@ jobs:
214199
}
215200
}
216201
working-directory: ${{ github.workspace }}
217-
- name: Check output
218-
shell: pwsh
219-
run: |
220-
Select-String 'webroot test:' logs/* | Out-Null; if ($LASTEXITCODE -ne 0) { Write-Host 'webroot test output not found'; exit 1 }
221-
working-directory: ${{ github.workspace }}
222202

223203
windows-bash:
224204
name: Windows Bash
@@ -238,18 +218,13 @@ jobs:
238218
for w in "${webroots[@]}"; do
239219
for e in "${executes[@]}"; do
240220
echo "Testing webroot=$w execute=$e"
241-
result=$(ant -buildfile build.xml -Dwebroot=$w -Dexecute="$e" -DuniqueWorkingDir=true 2>&1)
221+
result=$(ant -buildfile build.xml -Dwebroot=$w -Dexecute="$e" -DpreCleanup=false -DpostCleanup=false 2>&1)
242222
if [ $? -ne 0 ]; then
243-
cmd="ant -buildfile build.xml -Dwebroot=$w -Dexecute=\"$e\" -DuniqueWorkingDir=true"
223+
cmd="ant -buildfile build.xml -Dwebroot=$w -Dexecute=\"$e\" -DpreCleanup=false -DpostCleanup=false"
244224
platform="windows-latest"
245225
shell="bash"
246226
echo -e "## Platform: $platform | Shell: $shell\n### $cmd\n\`\`\`\nFAILED: $w / $e\n$result\n\`\`\`\n" >> "$GITHUB_STEP_SUMMARY"
247227
fi
248228
done
249229
done
250230
working-directory: ${{ github.workspace }}
251-
- name: Check output
252-
shell: bash
253-
run: |
254-
grep 'webroot test:' logs/* || (echo 'webroot test output not found' && exit 1)
255-
working-directory: ${{ github.workspace }}

0 commit comments

Comments
 (0)