-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (47 loc) · 1.69 KB
/
Copy pathtest-installer.yml
File metadata and controls
58 lines (47 loc) · 1.69 KB
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: Test Installer
on:
workflow_dispatch:
jobs:
test-unix:
name: Test Installer (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, macos-13]
steps:
- name: Install Karate CLI
run: |
curl -fsSL https://karate.sh/install.sh | sh -s -- --bin-dir $HOME/.local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Setup Karate (JRE + JAR)
run: karate setup --all --force
- name: Verify installation
run: |
karate version
karate doctor
- name: Fetch smoke test
run: curl -fsSL https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/test/smoke.feature -o smoke.feature
- name: Run smoke test
run: karate smoke.feature
test-windows:
name: Test Installer (windows-latest)
runs-on: windows-latest
steps:
- name: Install Karate CLI
shell: pwsh
run: |
$InstallDir = "$env:LOCALAPPDATA\Programs\Karate"
Invoke-RestMethod -Uri "https://karate.sh/install.ps1" -OutFile install.ps1
.\install.ps1 -InstallDir $InstallDir
echo "$InstallDir" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Setup Karate (JRE + JAR)
run: karate setup --all --force
- name: Verify installation
run: |
karate version
karate doctor
- name: Fetch smoke test
run: Invoke-WebRequest -Uri "https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/test/smoke.feature" -OutFile smoke.feature
- name: Run smoke test
run: karate smoke.feature