Skip to content

Set up GitHub Actions CI - #45

Merged
narze merged 10 commits into
masterfrom
ci/github-actions
Nov 27, 2026
Merged

narze merged 10 commits into
masterfrom
ci/github-actions

Conversation

@narze

@narze narze commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add .github/workflows/test.yml. It runs the tests in tests/ for pushes to master, for pull requests, and on manual dispatch, on three jobs:
    • ubuntu-latest and macos-latest. mise installs pinned chezmoi (2.74.1), Ruby 4.0.6 (global) and Ruby 3.4.8.
    • archlinux:latest container. pacman installs chezmoi, mise, zsh and the test tools. The tests run once as Arch, then again after ID=omarchy is set in /etc/os-release (there is no Omarchy image; chezmoi finds Omarchy from that ID).
  • The test loop is in .github/scripts/run-tests.sh, so that the jobs share it.
  • New tests/arch-managed.sh: checks is_arch/is_omarchy, which files chezmoi manages on Arch and on Omarchy (Omarchy-only files, files left to Omarchy, no macOS files), and that a dry-run apply renders every template. It skips other systems.
  • Fix a bug that the first CI run found: in dot_zshenv.tmpl, the Homebrew block came after the mise shims block, so /opt/homebrew/bin came first in PATH. Agent shells then ran a Homebrew node/ruby instead of the project version (locally: a project pinned to node 22.17.0 got Homebrew node v26.13.1). The Homebrew block now comes first, and a new test checks the PATH order.
  • Fix tests/mise-bootstrap-darwin.sh. It still looked for fish, sketchybar and the mas apps, which recent commits commented out, so it failed on master.
  • tests/ai-aligned-zsh.sh ignores the stderr warning that zsh -i prints when there is no terminal (CI).
  • tests/telemetry-off.sh says when jq is missing (the gemini modify script needs it).

Tests per job

Test Ubuntu macOS Arch + Omarchy
abbr.zsh, agent-mise-shims.sh, ai-aligned-zsh.sh, telemetry-off.sh, zsh-options.sh yes yes yes
quickshell-runtime-cleanup.sh (uses /proc, GNU date/stat) yes no yes
arch-managed.sh skips skips yes
mise-bootstrap-darwin.sh no yes no
hypr-wm-focus.sh, hyprshell.sh (need a live Hyprland session) no no no

Test plan

  • All portable tests pass locally on macOS
  • Agent shell in a project with node 22.17.0 gets the mise shim, not Homebrew node
  • arch-managed.sh passes in a local Arch container as Arch and as Omarchy, and fails when .chezmoiignore stops leaving nvim to Omarchy
  • CI is green on all three jobs

🤖 Generated with Claude Code

narze and others added 10 commits November 27, 2026 21:30
Recent commits commented out fish, sketchybar and the mas apps, so the
test failed. It now checks packages that are still in the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Runs the tests that do not need a Hyprland session on ubuntu-latest and
macos-latest. mise installs pinned chezmoi and Ruby versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Homebrew block came after the mise shims, so it put /opt/homebrew/bin
first in PATH. Agent shells then ran a Homebrew node or ruby instead of
the project version. CI found it: the macOS runner links ruby 3.4.12.

The non-agent test now checks only that PATH has no mise shims, because
Homebrew can come first there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a CI runner there is no terminal, so zsh -i prints a warning on
stderr and the test read it instead of the command output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reads ID from /etc/os-release, like chezmoi does, and skips other
systems. Also checks that a dry-run apply renders every template.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Runs the Linux tests in the archlinux container, then sets ID=omarchy in
/etc/os-release and runs them again. The test loop moves into
.github/scripts/run-tests.sh so that both jobs use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The gemini modify script keeps settings.json as it is when jq is
missing. The Arch image has no jq, so the test failed with an empty
value. The test now says when jq is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@narze
narze merged commit dfaf609 into master Nov 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant