Skip to content

Commit 313220a

Browse files
pesoextrawurst
andauthored
Fix #315 run brew test in CI (#2596)
Co-authored-by: extrawurst <[email protected]>
1 parent e299017 commit 313220a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yml

+28
Original file line numberDiff line numberDiff line change
@@ -275,3 +275,31 @@ jobs:
275275
with:
276276
name: release-notes.txt
277277
path: ./release-notes.txt
278+
279+
test-homebrew:
280+
name: Test Homebrew Formula (macOS)
281+
runs-on: macos-latest
282+
steps:
283+
- name: Checkout code
284+
uses: actions/checkout@v4
285+
286+
- name: Install stable Rust
287+
uses: actions-rs/toolchain@v1
288+
with:
289+
toolchain: stable
290+
291+
- name: Install Homebrew
292+
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
293+
294+
- name: Set up Homebrew in PATH
295+
run: |
296+
echo "$HOMEBREW_PREFIX/bin:$HOMEBREW_PREFIX/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" >> $GITHUB_PATH
297+
298+
- name: Update Homebrew
299+
run: brew update
300+
301+
- name: Let Homebrew build gitui from source
302+
run: brew install --head --build-from-source gitui
303+
304+
- name: Run Homebrew test
305+
run: brew test gitui

0 commit comments

Comments
 (0)