Skip to content

Add script and GH action to verify taps #2

Add script and GH action to verify taps

Add script and GH action to verify taps #2

name: Test Knative Client Plugin Install
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]
jobs:
test:
name: Homebrew Tap
strategy:
matrix:
os: [ "ubuntu-latest", "macos-latest" ]
runs-on: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Install Homebrew
if: matrix.os == 'macos-latest'
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
- name: Install Bash 4 on MacOS
if: matrix.os == 'macos-latest'
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
brew install bash
echo "/usr/local/bin" >> $GITHUB_PATH
echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH
- name: Execute tests
run: |
./hack/verify-taps.sh