test: add setup version logic tests #271
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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-24.04 | |
| bad-version: | |
| - 'something' | |
| - '5.1.2' | |
| - '3.1.14' | |
| - 'pm-preview' | |
| - 'https://github.com/lando/legacy-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@v6 | |
| 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 |