Skip to content

feat(macos): ✨ migrate cask-backed apps into Brewfile #8

feat(macos): ✨ migrate cask-backed apps into Brewfile

feat(macos): ✨ migrate cask-backed apps into Brewfile #8

Workflow file for this run

name: Shell Quality
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install tools
run: |
sudo apt-get update
sudo apt-get install -y shellcheck shfmt
- name: ShellCheck
run: |
shellcheck -x \
install.sh \
macos/defaults.sh \
macos/dock.sh \
old_setup.sh \
general/.aliases \
general/.functions \
general/.history_settings \
general/.omp_init \
git/.git_aliases \
git/.git_functions
- name: shfmt (check only)
run: |
shfmt -d -i 4 -ci -bn \
install.sh \
macos/defaults.sh \
macos/dock.sh \
old_setup.sh \
general/.aliases \
general/.functions \
general/.history_settings \
general/.omp_init \
git/.git_aliases \
git/.git_functions
dry-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run installer dry-run
env:
HOME: ${{ runner.temp }}/dotfiles-dry-run-home
run: |
set -euo pipefail
mkdir -p "$HOME"
./install.sh --dry-run --minimal
smoke-install:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shell: [bash, zsh]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Zsh
if: matrix.shell == 'zsh'
run: |
sudo apt-get update
sudo apt-get install -y zsh
- name: Run minimal install
env:
HOME: ${{ runner.temp }}/dotfiles-smoke-${{ matrix.shell }}
run: |
set -euo pipefail
mkdir -p "$HOME"
if [ "${{ matrix.shell }}" = "zsh" ]; then
shell_bin="$(command -v zsh)"
else
shell_bin="/bin/bash"
fi
export SHELL="$shell_bin"
./install.sh --minimal
mkdir -p "$HOME/.local/bin"
cat >"$HOME/.local/bin/codex-smoke" <<'EOF'
#!/usr/bin/env bash
echo smoke
EOF
chmod +x "$HOME/.local/bin/codex-smoke"
env -i HOME="$HOME" SHELL="$shell_bin" PATH="/usr/bin:/bin" "$shell_bin" -ic '
type aa >/dev/null
type l >/dev/null
type gl >/dev/null
command -v codex-smoke >/dev/null
'