-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (34 loc) · 1.04 KB
/
install-script-tests.yml
File metadata and controls
41 lines (34 loc) · 1.04 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
name: Install Script Tests
on:
push:
paths:
- 'install-cli.sh'
- '.github/workflows/install-script-tests.yaml'
pull_request:
paths:
- 'install-cli.sh'
- '.github/workflows/install-script-tests.yaml'
jobs:
test-script:
name: Test Bash Script on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up Bash on Windows
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
install: bash
- name: Run script on Linux/macOS
if: runner.os != 'Windows'
run: bash install-cli.sh
- name: Run script on Windows (MSYS2 Bash)
if: runner.os == 'Windows'
shell: msys2 {0}
run: bash install-cli.sh
- name: Verify installation
run: kosli version