Skip to content

Commit

Permalink
feature(install): begin refactoring install and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairstead committed Sep 23, 2023
1 parent 05d9e45 commit 4bc90b8
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 73 deletions.
35 changes: 3 additions & 32 deletions .github/workflows/test.yml
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)"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# Install Dotfiles

```bash
bash -c "$(curl -fsSL https://raw.githubusercontent.com/alistairstead/dotfiles/master/install.sh)" && source
bash -c "$(curl -fsSL https://raw.githubusercontent.com/alistairstead/dotfiles/main/install.sh)" && source
~/.zshrc
```

Expand Down
40 changes: 0 additions & 40 deletions install

This file was deleted.

25 changes: 25 additions & 0 deletions install.sh
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..."
14 changes: 14 additions & 0 deletions zsh/functions/debug-fonts
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}"

0 comments on commit 4bc90b8

Please sign in to comment.