Skip to content

Fix .ps1 passing bad --arch to .sh #79

Fix .ps1 passing bad --arch to .sh

Fix .ps1 passing bad --arch to .sh #79

name: POSIX Script Bad Version Tests
on:
pull_request:
jobs:
setup-lando-posix-bad-versions-test:
runs-on: ${{ matrix.os }}
env:
LANDO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
bad-version:
- 'something'
- '5.1.2'
- '3.1.14'
- 'pm-preview'
- 'https://github.com/lando/cli/releases/download/v3.18.0/lando-linux-x64-v3.18.0'
- '/home/runner/work/setup-lando/setup-lando/bin/lando'
- './bin/lando'
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Lando version ${{ matrix.bad-version }}
shell: bash
run: ./setup-lando.sh --version=${{ matrix.bad-version }} --no-setup || echo "$?" | grep 1