Skip to content

Enhance reusable Zsh CI workflow with fixes and improvements#428

Merged
ss-o merged 14 commits into
mainfrom
copilot/add-reusable-zsh-ci-workflow
May 28, 2026
Merged

Enhance reusable Zsh CI workflow with fixes and improvements#428
ss-o merged 14 commits into
mainfrom
copilot/add-reusable-zsh-ci-workflow

Conversation

@ss-o
Copy link
Copy Markdown
Member

@ss-o ss-o commented May 23, 2026

This pull request makes a minor update to the Zsh GitHub Actions workflow configuration. The workflow now supports being triggered by the workflow_call event, enabling it to be invoked from other workflows.

Copilot AI and others added 10 commits May 15, 2026 12:50
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Sall <59910950+ss-o@users.noreply.github.com>
@ss-o ss-o marked this pull request as ready for review May 23, 2026 15:46
@ss-o ss-o requested a review from a team as a code owner May 23, 2026 15:46
Copilot AI review requested due to automatic review settings May 23, 2026 15:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to improve cross-repo reuse for Zsh CI by introducing a reusable workflow and making the existing zsh-n workflow callable via workflow_call.

Changes:

  • Added workflow_call trigger support to .github/workflows/zsh-n.yml.
  • Added a new reusable workflow .github/workflows/reusable-zsh-ci.yml to run zsh -n and zcompile across all *.zsh files.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.

File Description
.github/workflows/zsh-n.yml Adds workflow_call so the existing per-file matrix syntax/compile workflow can be invoked as a reusable workflow.
.github/workflows/reusable-zsh-ci.yml Introduces a new reusable workflow that discovers *.zsh files, runs zsh -n, and compiles them with zcompile.

Comment thread .github/workflows/reusable-zsh-ci.yml Outdated
Comment thread .github/workflows/reusable-zsh-ci.yml Outdated
Comment thread .github/workflows/reusable-zsh-ci.yml Outdated
Comment thread .github/workflows/reusable-zsh-ci.yml Outdated
Comment thread .github/workflows/reusable-zsh-ci.yml Outdated
Comment thread .github/workflows/reusable-zsh-ci.yml Outdated
Comment thread .github/workflows/reusable-zsh-ci.yml Outdated
- Unquote `on:` for consistency with other workflows
- Add workflow-level `permissions: {}` and job-level `permissions: contents: read`
- Add `concurrency:` block matching other repo workflows
- Pin actions/checkout to SHA de0fac2e (v6.0.2)
- Use apt-get consistently (drop bare `apt update`)
- Prune `.git/` in both find commands alongside `doc/`
- Change exit 1 on no .zsh files to no-op exit 0

Agent-Logs-Url: https://github.com/z-shell/.github/sessions/ba89a619-772a-4b3e-9e6c-57c215be60dc

Co-authored-by: ss-o <59910950+ss-o@users.noreply.github.com>
Copilot finished work on behalf of ss-o May 23, 2026 16:04
zsh-ci.yml already provides the same functionality (zsh -n + optional
zcompile) with more robust behavior: zsh-version/run-zcompile inputs,
GitHub error annotations, and proper error accumulation.

Addresses review comment about overlap with existing zsh-ci.yml workflow.
Copilot finished work on behalf of ss-o May 26, 2026 17:24
@ss-o ss-o merged commit 48e314c into main May 28, 2026
3 checks passed
@ss-o ss-o deleted the copilot/add-reusable-zsh-ci-workflow branch May 28, 2026 20:58
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.

3 participants