Skip to content

Commit d9b49f5

Browse files
committed
add failing powershell replacer tests part 8
1 parent dc1828c commit d9b49f5

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,13 @@ jobs:
5050
- name: Verify older situation
5151
shell: powershell
5252
run: |
53-
Get-Command lando | Select-Object -ExpandProperty Source | Select-String -Pattern "$env:USERPROFILE\.lando\bin\lando.cmd" -SimpleMatch
54-
lando version | Select-String -Pattern "${{ matrix.old-version }}" -SimpleMatch
53+
Get-Command lando | Select-Object -ExpandProperty Source | Select-String -Pattern "$env:USERPROFILE\.lando\bin\lando.cmd" -SimpleMatch -ErrorAction Stop
54+
lando version | Select-String -Pattern "${{ matrix.old-version }}" -SimpleMatch -ErrorAction Stop
5555
- name: Replace Lando with setup-script
5656
shell: powershell
5757
run: .\setup-lando.ps1 -Version=${{ matrix.version }} -NoSetup
5858
- name: Verify new situation
5959
shell: powershell
6060
run: |
61-
Get-Command lando | Select-Object -ExpandProperty Source
62-
lando version
63-
64-
Get-Command lando | Select-Object -ExpandProperty Source | Select-String -Pattern "$env:USERPROFILE\.lando\bin\lando.exe" -SimpleMatch
65-
lando version | Select-String -Pattern "${{ matrix.version }}"
61+
Get-Command lando | Select-Object -ExpandProperty Source | Select-String -Pattern "$env:USERPROFILE\.lando\bin\lando.exe" -SimpleMatch -ErrorAction Stop
62+
lando version | Select-String -Pattern "${{ matrix.version }}" -SimpleMatch -ErrorAction Stop

0 commit comments

Comments
 (0)