Skip to content

Commit

Permalink
chore: add test job at CI
Browse files Browse the repository at this point in the history
  • Loading branch information
YasminTeles committed Mar 17, 2024
1 parent 9d06024 commit eafcae7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 2 additions & 3 deletions brew/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -48,7 +47,7 @@ cask "figma"
cask "postman"

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

Expand Down
9 changes: 7 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
[email protected]
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."

Expand All @@ -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

Expand Down

0 comments on commit eafcae7

Please sign in to comment.