-
Notifications
You must be signed in to change notification settings - Fork 64
36 lines (34 loc) · 1.18 KB
/
integration-check-install.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
name: Install Script Integration Test
on:
pull_request:
branches: [ main ]
jobs:
install:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Run Install Script
shell: bash
run: ./scripts/install.sh
- name: Validate Command is Installed
shell: bash
run: |
if command -v /home/runner/.local/bin/bridgetokubernetes/dsc &> /dev/null
then
echo "install_dir=/home/runner/.local/bin/bridgetokubernetes/dsc" >> $GITHUB_ENV
elif command -v /usr/local/bin/bridgetokubernetes/dsc &> /dev/null
then
echo "install_dir=/usr/local/bin/bridgetokubernetes/dsc" >> $GITHUB_ENV
elif command -v /c/Users/runneradmin/.local/bin/bridgetokubernetes/dsc &> /dev/null
then
echo "install_dir=/c/Users/runneradmin/.local/bin/bridgetokubernetes/dsc" >> $GITHUB_ENV
else
echo "B2k CLI is not found"
exit 1
fi
- name: Validate B2k Command Runs
shell: bash
run: ${{ env.install_dir }} connect --help