Skip to content

Commit 2eddf7e

Browse files
committed
Adjust log display and script path
1 parent 182a950 commit 2eddf7e

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,6 @@ jobs:
2222
with:
2323
sourceDir: "./tests"
2424
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
3625
- name: "Upload Build Artifact"
3726
uses: actions/upload-artifact@v4
3827
id: "upload"

action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,19 @@ runs:
1919
run: choco install 7zip.install
2020
# https://community.chocolatey.org/packages?q=Excel
2121
- name: "Installing Office 365 (takes about 5 minutes...)"
22+
id: "install_office"
2223
shell: pwsh
2324
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+
}
2435
- name: "Run VBA Build"
2536
shell: pwsh
2637
run: '${{ github.action_path }}\Main.ps1 -SourceDir "${{ inputs.sourceDir }}"'

scripts/Build-VBA.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ try {
334334
Write-Host "🟡 Warning: Could not execute macro ${macroName}: $($_.Exception.Message)"
335335
}
336336

337-
. "$scriptPath/utils/Tests-Rubberduck-VBA.ps1"
337+
. "$scriptPath/Tests-Rubberduck-VBA.ps1"
338338

339339
# Now perform all tests using Rubberduck
340340
# Replace the existing Rubberduck test block with this:

0 commit comments

Comments
 (0)