Merge pull request #292 from himkt/tips-cli #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
main: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: uninstall builtin homebrew on macOS | |
run: | | |
sudo rm -rf /opt/homebrew | |
- name: setup dotfiles | |
run: | | |
cp -r $GITHUB_WORKSPACE $HOME/dotfiles | |
cd $HOME/dotfiles | |
make | |
make brew | |
- name: install packages | |
run: | | |
source $HOME/.zshrc | |
make brew-base | |
shell: zsh {0} | |
- name: brew doctor on macOS | |
run: | | |
# NOTE(himkt); skip this on Ubuntu since brew doctor won't succeed | |
# due to the installation path. | |
brew doctor |