Skip to content

Commit

Permalink
fix: remove default gitconfig at macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
YasminTeles committed Mar 10, 2024
1 parent 07d6bae commit 1e99ff8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 49 deletions.
46 changes: 5 additions & 41 deletions .github/workflows/health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,50 +20,14 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

Tests:
strategy:
matrix:
os: [ubuntu-latest, macos-12, macos-13, macos-14]
include:
- os: macOS-12
shell: bash
- os: macOS-13
shell: bash
- os: macOS-14
shell: bash
- os: ubuntu-latest
shell: bash
runs-on: ${{ matrix.os }}
defaults:
run:
shell: ${{ matrix.shell }}
runs-on: macos-14
timeout-minutes: 50
steps:
- name: Clean up linuxOS
if: runner.os != 'macOS'
run: sudo apt-get install build-essential

- name: Cleanup macOS
if: runner.os == 'macOS'
run: |
sudo rm -rf /Applications/Xcode.app \
/Library/Developer/CommandLineTools
sudo xcode-select --reset
- name: Install Homebrew
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
env:
NONINTERACTIVE: 1

- name: Set up Homebrew PATH
run: |
if [[ "${{ runner.os }}" = "macOS" ]]
then
echo "/usr/local/bin:/usr/bin:/bin" >> "${GITHUB_PATH}"
else
echo "/home/linuxbrew/.linuxbrew/bin:/usr/bin:/bin" >> "${GITHUB_PATH}"
fi
run: echo "/usr/local/bin:/usr/bin:/bin" >> "${GITHUB_PATH}"

- name: Check Homebrew
run: brew --config
- name: Homebrew install
run: brew reinstall git

- name: Run install script
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/YasminTeles/dotfiles/main/install.sh)"
Expand Down
2 changes: 1 addition & 1 deletion brew/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ cask "figma"
cask "postman"

# Productivity apps
cask "notion-calendar"
cask "notion"
cask "spotify"
cask "cron"

# Communication
cask "zoom"
Expand Down
14 changes: 7 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,26 @@ printf "\nPlease wait! It will configure your environment.\n"
step_msg "Creating the Projects folder"
mkdir ~/Projects

# -- Homebrew -----------------------------------------------------------------
step_msg "Installing homebrew"
brew update
brew install git stow
# -- Dependencies -----------------------------------------------------------------
step_msg "Installing dependencies"
brew install stow >/dev/null

# -- Dotfiles -----------------------------------------------------------------
step_msg "Setting up dotfiles"
git clone https://github.com/YasminTeles/dotfiles.git ~/.dotfiles
git clone https://github.com/YasminTeles/dotfiles.git ~/.dotfiles >/dev/null

cd ~/.dotfiles
rm -rf ~/.gitconfig
stow --dotfiles git ssh brew

# -- Productivity Apps ---------------------------------------------------------
step_msg "Installing the productivity apps"
brew bundle install --file=~/Brewfile
brew bundle install --file=~/Brewfile >/dev/null

# -- Oh My Zsh -----------------------------------------------------------------
step_msg "Installing the Oh My Zsh"
# chsh -s $(which zsh)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended >/dev/null
rm -rf ~/.zshrc
stow --dotfiles zsh
echo "My current shell is $SHELL."
Expand Down

0 comments on commit 1e99ff8

Please sign in to comment.