-
Notifications
You must be signed in to change notification settings - Fork 3
69 lines (62 loc) · 2.11 KB
/
bootstrap.yml
File metadata and controls
69 lines (62 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: bootstrap
on:
push:
branches: [master]
pull_request:
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Run bootstrap
env:
FORCE_OVERWRITE: "1"
SKIP_TPM: "1"
SKIP_DEFAULTS: "1"
SKIP_NVIM: "1"
SKIP_MISE: "1"
run: bash bootstrap.sh
- name: Verify dotfiles symlinked
run: |
set -e
for f in .zshrc .gitconfig .tmux.conf .fzf.zsh .npmrc; do
test -L "$HOME/$f" || { echo "missing symlink: ~/$f"; exit 1; }
done
test -L "$HOME/.gem/credentials"
test -L "$HOME/.gitignore"
test -L "$HOME/.config/nvim"
test -L "$HOME/.config/mise/config.toml"
test -L "$HOME/.config/lsd/colors.yaml"
test -L "$HOME/.config/lsd/config.yaml"
test -L "$HOME/.config/gitleaks/config.toml"
test -L "$HOME/.tmux/loadavg.sh"
test -L "$HOME/.tmux/theme-sync.sh"
test -L "$HOME/.tmux/tmuxline.dark.conf"
test -L "$HOME/.tmux/tmuxline.light.conf"
test -L "$HOME/.tmux/extrakto"
- name: Verify CLI tools installed
run: |
set -e
for cmd in zsh nvim direnv lsd starship zoxide fzf tmux rg gh delta; do
command -v "$cmd" >/dev/null || { echo "missing: $cmd"; exit 1; }
done
test -x "$HOME/.local/bin/fd"
test -x "$HOME/.local/bin/bat"
- name: Verify dry-run is a no-op
run: |
set -e
before=$(find "$HOME" -maxdepth 3 -type l 2>/dev/null | sort | sha256sum)
bash bootstrap.sh --dry-run > /dev/null
after=$(find "$HOME" -maxdepth 3 -type l 2>/dev/null | sort | sha256sum)
[[ "$before" == "$after" ]] || { echo "dry-run modified state"; exit 1; }
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run shellcheck
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq shellcheck
shellcheck bootstrap.sh defaults.sh