Skip to content

refactor(ci): share build and plugin restore via a composite action - #57

Merged
potsrevennil merged 4 commits into
ci/lazy-release-updatesfrom
refactor/ci-shared-setup
Oct 20, 2026
Merged

potsrevennil merged 4 commits into
ci/lazy-release-updatesfrom
refactor/ci-shared-setup

Conversation

@potsrevennil

Copy link
Copy Markdown
Owner

ci.yml's test job and lazy-update.yml both build a kapi-vim package, put its nvim on PATH and run the checked lazy.nvim restore. After #53 and #54, the restore sequence and its explanation were duplicated word for word. A composite action, .github/actions/setup-kapi-vim, now does all of that plus the plugin cache. Both workflows call it.

A composite action rather than a reusable workflow: lazy-update has to run its own update step between the restore and the smoke test, so the shared unit is a block of steps, not a whole job.

🤖 Generated with Claude Code

potsrevennil and others added 4 commits October 20, 2026 15:25
A bare `Lazy! restore` on a cache miss lets lazy.nvim's first-run
install rewrite the lockfile before LazyVim's imported specs are known,
leaving those plugins at their upstream target. Install first, copy the
committed lock back, restore, and cmp the result -- the same sequence
lazy-update.yml uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci.yml's test job and lazy-update.yml both built a kapi-vim package,
put it on PATH and ran the checked lazy.nvim restore, with the restore
sequence and its comment duplicated. .github/actions/setup-kapi-vim now
does all three, plus the plugin cache.

The cache is split into restore/save so lazy-update can read CI's cache
without writing its updated plugins under the old lockfile's key; the
save also moves to straight after the checked restore. The key changes
from runs-on to OS/arch since a composite action can't see the matrix,
so the first run after this misses once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@potsrevennil
potsrevennil merged commit 6ec91cf into ci/lazy-release-updates Oct 20, 2026
5 checks passed
@potsrevennil
potsrevennil deleted the refactor/ci-shared-setup branch October 20, 2026 08:03
@potsrevennil

Copy link
Copy Markdown
Owner Author

Folded into #53: its commit now sits on #53's branch, which GitHub records as merging this PR.

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