Skip to content

Commit

Permalink
ci: test on macos-12 and macos-14
Browse files Browse the repository at this point in the history
homebrew path different for arm64 macos runners
  • Loading branch information
YOU54F authored May 16, 2024
1 parent cb6a36b commit 55cd534
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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: |
Expand Down

0 comments on commit 55cd534

Please sign in to comment.