Skip to content

fix bug causing lando setup fail on POSIX for lando <3.24 #168

fix bug causing lando setup fail on POSIX for lando <3.24

fix bug causing lando setup fail on POSIX for lando <3.24 #168

name: Windows Script Bad Version Tests
on:
pull_request:
jobs:
setup-lando-windows-bad-versions-test:
runs-on: windows-2022
env:
LANDO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: false
matrix:
bad-version:
- 'something'
- '5.1.2'
- '3.1.14'
- 'pm-preview'
- 'https://github.com/lando/legacy-cli/releases/download/v3.18.0/lando-windows-x64-v3.18.0'
- '.\setup-lando\bin\lando'
- '.\bin\lando'
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Lando version ${{ matrix.bad-version }}
shell: powershell
run: |
try {
.\setup-lando.ps1 -Version ${{ matrix.bad-version }} -NoSetup
exit 1
} catch {
exit 0
}