Skip to content

Commit 1f33521

Browse files
authored
ci: setup brew installation test workflow (#15)
1 parent 9985e9d commit 1f33521

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test Brew Install
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
test:
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest]
17+
18+
runs-on: ${{ matrix.os }}
19+
20+
steps:
21+
- name: Checkout Code
22+
uses: actions/checkout@v4
23+
24+
- name: Set up Homebrew
25+
uses: Homebrew/actions/setup-homebrew@master
26+
27+
- name: Add Homebrew tap
28+
run: |
29+
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
30+
ln -Fs "$(pwd)" "$(brew --repository)/Library/Taps/$GITHUB_REPOSITORY"
31+
fi
32+
33+
- name: Install binaries
34+
run: |
35+
brew install meroctl
36+
brew install merod
37+
38+
- name: Validate binaries installation
39+
run: |
40+
which meroctl
41+
meroctl --version
42+
which merod
43+
merod --version

0 commit comments

Comments
 (0)