feat: add linuxbrew #895
Workflow file for this run
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
--- | |
name: CI | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: 0 8 * * 6 | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Create workfolder | |
run: | | |
mkdir -p ~/dotfiles-install-dir | |
- name: Install dotfiles | |
run: | | |
HOME=~/dotfiles-install-dir ./install -vv | |
- name: Show dotfiles | |
run: | | |
ls -alh ~/dotfiles-install-dir | |
- name: Test homebrew installer | |
run: | | |
HOME=~/dotfiles-install-dir installers/homebrew.sh | |
- name: Test starship installer | |
run: | | |
installers/starship.sh | |
- name: Test zsh installer | |
run: | | |
HOME=~/dotfiles-install-dir installers/zsh.sh | |
- name: Test github CLI installer | |
run: | | |
HOME=~/dotfiles-install-dir installers/gh.sh | |
- name: Test nix installer | |
run: | | |
HOME=~/dotfiles-install-dir installers/nix.sh | |
- name: Test nvm installer | |
run: | | |
HOME=~/dotfiles-install-dir installers/nvm.sh | |
- name: Test lazygit installer | |
run: | | |
HOME=~/dotfiles-install-dir installers/lazygit.sh | |
- name: Test apt installer | |
run: | | |
sudo HOME=~/dotfiles-install-dir installers/apt_install.sh | |
if: runner.os == 'Linux' | |
- name: Test docker installer | |
run: | | |
HOME=~/dotfiles-install-dir installers/docker.sh | |
- name: Test Brewfile install (macos) | |
run: | | |
brew bundle --file=_macos/Brewfile --verbose | |
if: runner.os == 'macOS' | |
- name: Test Brewfile install (linux) | |
run: | | |
brew bundle --file=_linux/Brewfile --verbose | |
if: runner.os == 'linux' | |
- name: Test Python installer + setup | |
run: | | |
echo $PYENV_ROOT | |
echo "$PYENV_ROOT/shims:$PYENV_ROOT/bin" >> $GITHUB_PATH | |
HOME=~/dotfiles-install-dir installers/python.sh | |
# Test Pyenv-installed Python version | |
python -c "import sys; print(sys.version)" | |
python -c "import sys; assert sys.version.startswith('${BASE_PYTHON_VER}')" | |
# Test Pipx | |
poetry --version | |
env: | |
PYENV_ROOT: /home/runner/dotfiles-install-dir/.pyenv | |
if: runner.os == 'Linux' | |
- name: Test Docker setup | |
run: | | |
sudo docker run hello-world | |
if: runner.os == 'Linux' |