-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(install): begin refactoring install and tests
- Loading branch information
1 parent
05d9e45
commit 4bc90b8
Showing
5 changed files
with
43 additions
and
73 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,12 @@ | ||
name: Tests | ||
on: | ||
push: | ||
branches: [master] | ||
branches: [main] | ||
jobs: | ||
test: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Symlinks | ||
run: ./bin/dotfiles symlinks | ||
- name: Install - homebrew | ||
run: ./bin/dotfiles install homebrew | ||
- name: Install - antibody | ||
run: ./bin/dotfiles install antibody | ||
- name: Install - asdf | ||
run: ./bin/dotfiles install asdf | ||
- name: Install - docker | ||
run: ./bin/dotfiles install docker | ||
- name: Install - elixir | ||
run: ./bin/dotfiles install elixir | ||
- name: Install - fzf | ||
run: ./bin/dotfiles install fzf | ||
- name: Install - git | ||
run: ./bin/dotfiles install git | ||
- name: Install - macos | ||
run: ./bin/dotfiles install macos | ||
- name: Install - ssh | ||
run: ./bin/dotfiles install .ssh | ||
- name: Install - neovim | ||
run: ./bin/dotfiles install neovim | ||
|
||
functional: | ||
needs: test | ||
install: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Run install | ||
run: | | ||
bash -c "$(curl -fsSL \ | ||
https://raw.githubusercontent.com/alistairstead/dotfiles/master/install.sh)" \ | ||
&& source ~/.zshrc | ||
https://raw.githubusercontent.com/alistairstead/dotfiles/main/install.sh)" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env sh | ||
|
||
echo "Mac OS Install Setup Script" | ||
|
||
sudo -v | ||
while true; do | ||
sudo -n true | ||
sleep 60 | ||
kill -0 "$$" || exit | ||
done 2>/dev/null & | ||
|
||
echo "Installing xcode..." | ||
xcode-select --install | ||
|
||
echo "Installing brew..." | ||
if test ! $(which brew); then | ||
## Don't prompt for confirmation when installing homebrew | ||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" </dev/null | ||
fi | ||
|
||
brew upgrade | ||
brew update | ||
brew tap caskroom/cask | ||
|
||
echo "Installing recipes from brew..." |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
smoke_tests=" | ||
Normal | ||
\033[1mBold\033[22m | ||
\033[3mItalic\033[23m | ||
\033[3;1mBold Italic\033[0m | ||
\033[4mUnderline\033[24m | ||
== === !== >= <= => | ||
| ||
" | ||
|
||
|
||
printf "%b" "${smoke_tests}" |