-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (47 loc) · 1.56 KB
/
install-script-tests.yml
File metadata and controls
56 lines (47 loc) · 1.56 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
name: Install Script Tests
on:
push:
paths:
- 'install-cli.sh'
- '.github/workflows/install-script-tests.yml'
- 'bin/test_install_script.sh'
- 'bin/test_install_script_over_homebrew.sh'
pull_request:
paths:
- 'install-cli.sh'
- '.github/workflows/install-script-tests.yml'
- 'bin/test_install_script.sh'
- 'bin/test_install_script_over_homebrew.sh'
workflow_dispatch:
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: Run install script test
shell: bash
run: |
chmod +x install-cli.sh
bash bin/test_install_script.sh --token ${{ secrets.GITHUB_TOKEN }}
mac-homebrew:
name: Test Homebrew Installation on macOS
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Run Homebrew install
shell: bash
run: brew install kosli-cli
- name: Verify Homebrew installation
shell: bash
run: command -v kosli
- name: Run install script test
shell: bash
run: |
chmod +x install-cli.sh
bash bin/test_install_script_over_homebrew.sh --token ${{ secrets.GITHUB_TOKEN }}