-
-
Notifications
You must be signed in to change notification settings - Fork 8
58 lines (54 loc) · 1.66 KB
/
pr-windows-script-versions-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Windows Script Version Tests
on:
pull_request:
jobs:
setup-lando-windows-versions-test:
runs-on: windows-2022
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LANDO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: false
matrix:
include:
- version: '3'
check: 'v3.*.*'
- version: 'v3.21.0-beta.10'
check: 'v3.21.0-beta.10'
- version: '3-stable'
check: 'v3.*.*'
- version: '3-edge'
check: 'v3.*.*'
- version: '3-latest'
check: 'v3.*.*'
- version: '3-dev'
check: 'v3.*.*'
- version: 'stable'
check: 'v3.*.*'
- version: 'edge'
check: 'v3.*.*'
- version: 'latest'
check: 'v3.*.*'
- version: 'dev'
check: 'v3.*.*-*-*'
- version: 'set-with-envvar'
check: 'v3.22.0'
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Lando version ${{ matrix.version }}
shell: powershell
run: |
# skip command
if ("${{ matrix.version }}" -eq "set-with-envvar") {
$env:LANDO_VERSION = "v3.22.0"
.\setup-lando.ps1 -NoSetup
} else {
.\setup-lando.ps1 -Version ${{ matrix.version }} -NoSetup
}
if (-not (lando version | Select-String -Pattern "${{ matrix.check }}")) {
$reported = lando version
throw "Error: lando is not the version we expect! expected ${{ matrix.version}} but found $reported"
}