From 55cd534988d364f8cf191ce28f996f03feaa17e9 Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Thu, 16 May 2024 13:24:24 +0100 Subject: [PATCH] ci: test on macos-12 and macos-14 homebrew path different for arm64 macos runners --- .github/workflows/test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 32c4026..1dff438 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: name: test strategy: matrix: - os: [macOS-latest,ubuntu-latest] + os: [macOS-12, macos-14,ubuntu-latest] fail-fast: false runs-on: ${{ matrix.os }} @@ -24,11 +24,19 @@ jobs: if: ${{ runner.os == 'Linux' }} - name: Install tap + if: matrix.os != 'macos-14' run: | brew tap pact-foundation/pact-ruby-standalone cd $(brew --prefix)/Homebrew/Library/Taps/pact-foundation/homebrew-pact-ruby-standalone/ git checkout ${{ github.sha }} brew install --verbose --debug pact-ruby-standalone + - name: Install tap + if: matrix.os == 'macos-14' + run: | + brew tap pact-foundation/pact-ruby-standalone + cd $(brew --prefix)/Library/Taps/pact-foundation/homebrew-pact-ruby-standalone/ + git checkout ${{ github.sha }} + brew install --verbose --debug pact-ruby-standalone - name: Brew test tap run: |