From b26fa0a4561eaf81bef948d1c4d334b5c07dc4d6 Mon Sep 17 00:00:00 2001 From: Hiroto Kitazawa Date: Wed, 29 Apr 2026 00:07:42 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20CI=E7=92=B0=E5=A2=83=E3=81=A7initialize.z?= =?UTF-8?q?sh=E3=82=92=E5=AE=9F=E8=A1=8C=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9c550ba..0d7a0a5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,3 +23,18 @@ jobs: - name: Check syntax of symlinks/dirs/bin-dotfiles/pull-dotfiles file run: zsh -n symlinks/dirs/bin-dotfiles/pull-dotfiles + + - name: Run initialize.zsh in isolated HOME + run: | + test_home="$(mktemp -d "${RUNNER_TEMP}/dotfiles-home.XXXXXX")" + ln -s "${GITHUB_WORKSPACE}" "${test_home}/dotfiles" + + HOME="${test_home}" zsh -c 'cd "${HOME}/dotfiles" && ./initialize.zsh' + + test -d "${test_home}/bin-local" + test -L "${test_home}/bin-dotfiles" + test -L "${test_home}/.zsh" + test -L "${test_home}/.zpreztorc" + test -L "${test_home}/.zprofile" + test -L "${test_home}/.zshrc" + test -d "${test_home}/.zprezto"