Skip to content

Commit

Permalink
feat: add Homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
YasminTeles committed Mar 10, 2024
1 parent 2f99ec1 commit ccabaf1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ jobs:
runs-on: macos-14
timeout-minutes: 50
steps:
- name: Set up Homebrew PATH
run: echo "/usr/local/bin:/usr/bin:/bin" >> "${GITHUB_PATH}"

- name: Homebrew install
run: brew reinstall git
- name: Clean up installed software
if: startsWith(matrix.os, 'macos')
run: |
brew uninstall --ignore-dependencies --force $(brew list --formula)
# brew uninstall --cask --force $(brew list --cask)
brew uninstall --cask --force firefox google-chrome
brew cleanup --prune-prefix
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
- name: Run install script
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/YasminTeles/dotfiles/main/install.sh)"
Expand Down
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ mkdir ~/Projects

# -- Dependencies -----------------------------------------------------------------
step_msg "Installing dependencies"
NONINTERACTIVE=1 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install stow >/dev/null

# -- Dotfiles -----------------------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ then
rm -rf ~/.oh-my-zsh
brew uninstall --force $(brew list)

# -- Homebrew ----------------------------------------------------------------
step_msg "Removing Homebrew"
NONINTERACTIVE=1 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"

# -- Dotfiles ----------------------------------------------------------------
step_msg "Removing Dotfiles directory"
rm -rf ~/.dotfiles
Expand Down

0 comments on commit ccabaf1

Please sign in to comment.