Skip to content

Bump xunit from 2.6.6 to 2.7.0 in /src/common.tests #1254

Bump xunit from 2.6.6 to 2.7.0 in /src/common.tests

Bump xunit from 2.6.6 to 2.7.0 in /src/common.tests #1254

name: Install Script Integration Test
on:
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
install:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- 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