Skip to content

Commit ddca6b0

Browse files
committed
improve busted version tests part 9
1 parent 863d5d5 commit ddca6b0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/pr-windows-script-versions-tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ jobs:
4444
- name: Setup Lando version ${{ matrix.version }}
4545
shell: powershell
4646
run: |
47-
# set correct encoding so Select-String works reliably
48-
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
47+
[Console]::OutputEncoding
4948
5049
# skip command
5150
if ("${{ matrix.version }}" -eq "set-with-envvar") {
@@ -55,7 +54,15 @@ jobs:
5554
.\setup-lando.ps1 -Version ${{ matrix.version }} -NoSetup
5655
}
5756
57+
[Console]::OutputEncoding
58+
59+
# set correct encoding so Select-String works reliably
60+
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
61+
62+
5863
lando version
64+
$output = lando version
65+
echo "$output"
5966
lando version | Select-String -Pattern "${{ matrix.check }}"
6067
lando version | Select-String -Pattern '${{ matrix.check }}'
6168
lando version | Select-String -Pattern "v3.*.*"

0 commit comments

Comments
 (0)