diff --git a/.github/workflows/health-check.yml b/.github/workflows/health-check.yml index d456de8..e1f5321 100644 --- a/.github/workflows/health-check.yml +++ b/.github/workflows/health-check.yml @@ -27,3 +27,21 @@ jobs: - name: Run Shellcheck run: make check-scripts + + Test: + name: Test install on macOS + runs-on: macos-14 + timeout-minutes: 30 + steps: + - name: Set up Homebrew PATH environment + run: echo "/usr/local/bin:/usr/bin:/bin" >> "${GITHUB_PATH}" + + - name: Run install script + run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/YasminTeles/dotfiles/main/install.sh)" + env: + CI: true + + - name: Show the Home directory + run: | + cd ~ + ls -la diff --git a/brew/Brewfile b/brew/Brewfile index 2a5fc53..66c2585 100644 --- a/brew/Brewfile +++ b/brew/Brewfile @@ -32,12 +32,11 @@ brew "docker-credential-helper" brew "docker-machine" # Languages -brew "go" +brew "golang" brew "node" brew "nvm" brew "yarn" brew "pyenv" -brew "poetry" # Development apps cask "visual-studio-code" @@ -48,7 +47,7 @@ cask "figma" cask "postman" # Productivity apps -cask "notion-calendar" +cask "cron" cask "notion" cask "spotify" diff --git a/install.sh b/install.sh index 0b0c2ab..76c94ed 100644 --- a/install.sh +++ b/install.sh @@ -15,8 +15,12 @@ function title_msg { } # -- Get some information ----------------------------------------------------- -printf "Please enter some information.\n" -read -r -p "What is your email? " GIT_EMAIL +if [ "$CI" = true ] ; then + GIT_EMAIL=name@mail.com +else + printf "Please enter some information.\n" + read -r -p "What is your email? " GIT_EMAIL +fi title_msg "Please wait! It will configure your environment." @@ -32,6 +36,7 @@ brew install git stow step_msg "Setting up dotfiles" git clone https://github.com/YasminTeles/dotfiles.git ~/.dotfiles +rm -rf ~/.gitconfig cd ~/.dotfiles stow --dotfiles git ssh brew