Skip to content

iTerm: allow Unlimited Scrollback #712

iTerm: allow Unlimited Scrollback

iTerm: allow Unlimited Scrollback #712

Workflow file for this run

---
name: setup machine
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
setup_and_update:
runs-on: ${{ matrix.os }}
strategy:
# fail-fast: false
matrix:
os: [macos-latest]
timeout-minutes: 60
steps:
- name: workaround setup for github runner macos
if: runner.os == 'macOS'
run: |-
# https://github.com/sensuikan1973/dotfiles/pull/125#issuecomment-1502177344
brew unlink [email protected] && brew link --overwrite [email protected]
# https://docs.brew.sh/FAQ#how-do-i-uninstall-homebrew
NONINTERACTIVE=1 sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
# https://github.com/sensuikan1973/dotfiles/pull/129#issuecomment-1505823099
sudo rm -rf /Applications/Google\ Chrome.app
- name: checkout repository to HOME
run: |-
git clone https://github.com/sensuikan1973/dotfiles.git ~/dotfiles
cd ~/dotfiles
# See: https://qiita.com/sonots/items/16df445132e704198e3e
# See: https://github.com/actions/checkout/issues/23
git fetch origin '+refs/pull/*:refs/remotes/pr/*' --prune
git checkout "$GITHUB_SHA"
# setup twice
# NOTE: I want to ensure idempotent
- name: 1st, run setup script
run: cd ~/dotfiles && ./setup.sh
- name: 2nd, run setup script
run: cd ~/dotfiles && ./setup.sh
- name: rough command test
# See: https://docs.github.com/ja/actions/learn-github-actions/environment-variables
# See: etc/shells and https://github.com/actions/runner-images/issues/2187
shell: /usr/local/bin/zsh {0}
run: |-
echo "$SHELL"
set -euxo pipefail
source "$HOME/.zshrc"
zsh --version
which brew
brew --prefix
uname
time
cd "$HOME/dotfiles"
ls
la
ll
g status && fp
rbenv --version
nodenv --version
pyenv --version
# my functions
find-bigN 3
disk-rankN 3
force_prune_docker_system_all
install_latest_nodejs
# https://github.com/sensuikan1973/dotfiles/pull/129#issuecomment-1506168490
# https://github.com/rbenv/ruby-build/discussions/2118
brew reinstall libyaml
install_latest_ruby
- name: upgrade_system_deps test
shell: /usr/local/bin/zsh {0}
run: |-
echo "$SHELL"
set -euxo pipefail
source "$HOME/.zshrc"
echo "$GITHUB_HEAD_REF"
upgrade_system_deps -branch "$GITHUB_HEAD_REF"
flutter doctor
dart --version
code --version
gcloud --version
gcloud config list
# upgrade_all_softwareupdate
# # session for debug
# - name: setup tmate session for debug ssh
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3