Skip to content

Commit c80cfd0

Browse files
committed
Removed the '-OutputFormat Text' option from all powershell and pwsh invocations since this is the default and this is not the cause of the CLIXML captures in build logs.
1 parent 6afb08b commit c80cfd0

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
image: ${{ matrix.docker_container }}
3737
mapping_path: 'c:\map'
3838
entrypoint: powershell.exe
39-
entrypoint_args: '-NoLogo -NonInteractive -NoProfile -OutputFormat Text'
39+
entrypoint_args: '-NoLogo -NonInteractive -NoProfile'
4040
env_names: TEST_MAPPING_PATH
4141
run: >-
4242
c:\map\test\run_test.ps1 -testPath "c:\map\test\run_default.Tests.ps1";
@@ -57,7 +57,7 @@ jobs:
5757
with:
5858
image: ${{ matrix.docker_container }}
5959
entrypoint: powershell.exe
60-
entrypoint_args: '-NoLogo -NonInteractive -NoProfile -OutputFormat Text'
60+
entrypoint_args: '-NoLogo -NonInteractive -NoProfile'
6161
mapping_path: 'c:\map'
6262
env_names: TEST1, TEST2, TEST3
6363
run: >-
@@ -68,7 +68,7 @@ jobs:
6868
with:
6969
image: ${{ matrix.docker_container }}
7070
entrypoint: powershell.exe
71-
entrypoint_args: '-NoLogo -NonInteractive -NoProfile -OutputFormat Text'
71+
entrypoint_args: '-NoLogo -NonInteractive -NoProfile'
7272
mapping_path: 'c:\map'
7373
run: >-
7474
c:\map\test\run_test.ps1 -testPath "c:\map\test\default_environment.Tests.ps1";
@@ -80,7 +80,7 @@ jobs:
8080
mapping_path: 'c:\map'
8181
work_path: 'c:\temp'
8282
entrypoint: powershell.exe
83-
entrypoint_args: '-NoLogo -NonInteractive -NoProfile -OutputFormat Text'
83+
entrypoint_args: '-NoLogo -NonInteractive -NoProfile'
8484
memory: 3GB
8585
run: >-
8686
c:\map\test\run_test.ps1 -testPath "c:\map\test\work_path.Tests.ps1";
@@ -92,7 +92,7 @@ jobs:
9292
mapping_path: 'c:\mapping'
9393
work_path: 'c:\temp'
9494
entrypoint: powershell.exe
95-
entrypoint_args: '-NoLogo -NonInteractive -NoProfile -OutputFormat Text'
95+
entrypoint_args: '-NoLogo -NonInteractive -NoProfile'
9696
memory: 3GB
9797
run: >-
9898
c:\mapping\test\run_test.ps1 -testPath "c:\mapping\test\mapping_path.Tests.ps1";
@@ -104,7 +104,7 @@ jobs:
104104
mapping_path: 'c:\map'
105105
workspace_path: ${{ github.workspace }}/test
106106
entrypoint: powershell.exe
107-
entrypoint_args: '-NoLogo -NonInteractive -NoProfile -OutputFormat Text'
107+
entrypoint_args: '-NoLogo -NonInteractive -NoProfile'
108108
memory: 3GB
109109
env_names: TEST_MAPPING_PATH
110110
run: >-
@@ -118,23 +118,23 @@ jobs:
118118
steps:
119119
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
120120
- name: Install
121-
shell: pwsh -NoLogo -NonInteractive -NoProfile -OutputFormat Text -Command ". '{0}'"
121+
shell: pwsh -NoLogo -NonInteractive -NoProfile -Command ". '{0}'"
122122
run: >-
123123
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted;
124124
Install-Module -Name Pester -Force -SkipPublisherCheck;
125125
Update-Module -Name Pester -Force;
126126
Install-Module -Name PSScriptAnalyzer -Force;
127127
Import-Module PSScriptAnalyzer -ErrorAction Stop
128128
- name: Linter src
129-
shell: pwsh -NoLogo -NonInteractive -NoProfile -OutputFormat Text -Command ". '{0}'"
129+
shell: pwsh -NoLogo -NonInteractive -NoProfile -Command ". '{0}'"
130130
run: >-
131131
Invoke-ScriptAnalyzer -Path src -EnableExit;
132132
- name: Linter test
133-
shell: pwsh -NoLogo -NonInteractive -NoProfile -OutputFormat Text -Command ". '{0}'"
133+
shell: pwsh -NoLogo -NonInteractive -NoProfile -Command ". '{0}'"
134134
run: >-
135135
Invoke-ScriptAnalyzer -Path test -EnableExit;
136136
- name: Test-Action-Scripts
137-
shell: pwsh -NoLogo -NonInteractive -NoProfile -OutputFormat Text -Command ". '{0}'"
137+
shell: pwsh -NoLogo -NonInteractive -NoProfile -Command ". '{0}'"
138138
run: >-
139139
Set-Location src;
140140
$config=New-PesterConfiguration;

action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ runs:
7878
${{ github.action_path }}/src/parse_input_paths.ps1 -githubWorkSpace "${{ github.workspace }}" -workspacePath "@${{ inputs.workspace_path }}" -mappingPath "@${{ inputs.mapping_path }}" -workPath "@${{ inputs.work_path }}";
7979
${{ github.action_path }}/src/parse_input_extra_args.ps1 -envNames "@${{ inputs.env_names }}" -entryPoint "@${{ inputs.entrypoint }}" -extraArgs "@${{ inputs.extra_args }}";
8080
${{ github.action_path }}/src/assign_default_environment_variables.ps1;
81-
shell: powershell -NoLogo -NonInteractive -NoProfile -OutputFormat Text -Command ". '{0}'"
81+
shell: powershell -NoLogo -NonInteractive -NoProfile -Command ". '{0}'"
8282
- name: docker_login
8383
id: docker_login
8484
if: inputs.registry_authentication == 'true'
85-
shell: powershell -NoLogo -NonInteractive -NoProfile -OutputFormat Text -Command ". '{0}'"
85+
shell: powershell -NoLogo -NonInteractive -NoProfile -Command ". '{0}'"
8686
run: |
8787
docker login ${{ inputs.registry_repository }} -u ${{ inputs.registry_username }} -p ${{ inputs.registry_token }}
8888
- name: Pre-warm
@@ -98,7 +98,7 @@ runs:
9898
${{ inputs.entrypoint_args }} `
9999
${{ inputs.pre-warm-cmd }}
100100
exit 0
101-
shell: powershell -NoLogo -NonInteractive -NoProfile -OutputFormat Text -Command ". '{0}'"
101+
shell: powershell -NoLogo -NonInteractive -NoProfile -Command ". '{0}'"
102102
- name: Run
103103
run: |
104104
$runnerPathSource = Split-Path -Path "${env:RUNNER_TEMP}" -Parent;
@@ -115,10 +115,10 @@ runs:
115115
${{ inputs.image }} `
116116
${{ inputs.entrypoint_args }} `
117117
${{ inputs.run }}
118-
shell: powershell -NoLogo -NonInteractive -NoProfile -OutputFormat Text -Command ". '{0}'"
118+
shell: powershell -NoLogo -NonInteractive -NoProfile -Command ". '{0}'"
119119
- name: docker_logout
120120
id: docker_logout
121121
if: inputs.registry_authentication == 'true'
122-
shell: powershell -NoLogo -NonInteractive -NoProfile -OutputFormat Text -Command ". '{0}'"
122+
shell: powershell -NoLogo -NonInteractive -NoProfile -Command ". '{0}'"
123123
run: |
124124
docker logout ${{ inputs.registry_repository }}

0 commit comments

Comments
 (0)