File tree Expand file tree Collapse file tree 3 files changed +13
-12
lines changed Expand file tree Collapse file tree 3 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 22
22
with :
23
23
sourceDir : " ./tests"
24
24
timeout-minutes : 30
25
- - name : " Display Chocolatey logs in case of Office install failure"
26
- if : failure() && steps.build_vba.outcome == 'failure'
27
- run : |
28
- if (Test-Path -Path "C:\ProgramData\chocolatey\logs\chocolatey.log") {
29
- Write-Host "============ Chocolatey Log Contents ============"
30
- Get-Content -Path "C:\ProgramData\chocolatey\logs\chocolatey.log"
31
- Write-Host "================================================="
32
- } else {
33
- Write-Host "Chocolatey log file not found at C:\ProgramData\chocolatey\logs\chocolatey.log"
34
- }
35
- shell : pwsh
36
25
- name : " Upload Build Artifact"
37
26
uses : actions/upload-artifact@v4
38
27
id : " upload"
Original file line number Diff line number Diff line change 19
19
run : choco install 7zip.install
20
20
# https://community.chocolatey.org/packages?q=Excel
21
21
- name : " Installing Office 365 (takes about 5 minutes...)"
22
+ id : " install_office"
22
23
shell : pwsh
23
24
run : choco install office365proplus -y
25
+ - name : " Display Chocolatey logs in case of Office install failure"
26
+ if : failure() && steps.install_office.outcome == 'failure'
27
+ run : |
28
+ if (Test-Path -Path "C:\ProgramData\chocolatey\logs\chocolatey.log") {
29
+ Write-Host "============ Chocolatey Log Contents ============"
30
+ Get-Content -Path "C:\ProgramData\chocolatey\logs\chocolatey.log"
31
+ Write-Host "============ End of Chocolatey Logs ============="
32
+ } else {
33
+ Write-Host "Chocolatey log file not found at C:\ProgramData\chocolatey\logs\chocolatey.log"
34
+ }
35
+ shell : pwsh
24
36
- name : " Run VBA Build"
25
37
shell : pwsh
26
38
run : ' ${{ github.action_path }}\Main.ps1 -SourceDir "${{ inputs.sourceDir }}"'
Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ try {
334
334
Write-Host " 🟡 Warning: Could not execute macro ${macroName} : $ ( $_.Exception.Message ) "
335
335
}
336
336
337
- . " $scriptPath /utils/ Tests-Rubberduck-VBA.ps1"
337
+ . " $scriptPath /Tests-Rubberduck-VBA.ps1"
338
338
339
339
# Now perform all tests using Rubberduck
340
340
# Replace the existing Rubberduck test block with this:
You can’t perform that action at this time.
0 commit comments