Skip to content

ci: run lint-shell and fix the file it flags - #195

Merged
aguil merged 2 commits into
masterfrom
ci/lint-shell
Nov 23, 2026
Merged

aguil merged 2 commits into
masterfrom
ci/lint-shell

Conversation

@aguil

@aguil aguil commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Why the change

CI never ran shfmt or shellcheck, so a test file merged unformatted and just qa::lint-shell failed on master; this fixes the file and adds the check to CI so it can't happen again.

Special things to note

  • The CI step runs the same qa.just recipe developers run locally, so the file list stays in one place.
  • The formatting commit is shfmt output only; no test behaviour changes.

Change outline

Two commits, one per concern:

  tests/shell/unit/sync_skills.bats      shfmt -w: `> "$x"` → `>"$x"`, trailing && instead of leading
  .github/workflows/pre-commit.yaml
    - run: mise exec --locked -- pre-commit run ... --all-files
+   - run: mise exec --locked -- just -f qa.just lint-shell
    - run: mise exec --locked -- nvim ... smoke.lua

lint-shell passes locally on Windows (Git Bash) with the reformatted file.

🤖 Generated with Claude Code

aguil and others added 2 commits November 22, 2026 20:24
qa::lint-shell runs shfmt -d -i 2 -ci over tests/shell, and this file
failed it: redirects had a space before the target, and one && sat at
the start of a continuation line. CI never ran lint-shell, so the file
landed unformatted. Rewritten with shfmt -w; no behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The workflow ran pre-commit, the nvim checks and the bats suites, but
never shfmt or shellcheck, so tests/shell/unit/sync_skills.bats merged
unformatted. Run the same just recipe developers use locally, under
mise exec --locked like the other steps, so the pinned shfmt and
shellcheck from mise.lock decide.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aguil
aguil marked this pull request as ready for review November 23, 2026 03:30
@aguil
aguil merged commit 43682eb into master Nov 23, 2026
1 check passed
@aguil
aguil deleted the ci/lint-shell branch November 23, 2026 03:32
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