From 31cd9e50bfc2b49da89a17899ff085b4516e8f0b Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Thu, 9 Nov 2023 17:13:26 +0100 Subject: [PATCH] feat: add homebrew test pipeline --- .github/workflows/tests.yml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..f43ca7c --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,40 @@ +name: End-to-end tests + +on: + workflow_dispatch: + push: + branches: + - main + paths: + - "Formula/keyweave.rb" + +jobs: + test: + strategy: + matrix: + os: + - ubuntu-22.04 + - ubuntu-20.04 + - macos-13 + - macos-12 + - macos-11 + + name: Test on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + continue-on-error: true + + steps: + - name: Check if Homebrew is installed + run: | + if ! command -v brew &> /dev/null + then + echo "Homebrew not found, installing..." + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + else + echo "Homebrew is already installed." + fi + + - name: Verify Homebrew installation + run: | + brew tap bartvdbraak/keyweave + brew install keyweave