Skip to content

ci: extract fmt check into parallel job, add fmt:check mise task - #305

Merged
richardthe3rd merged 6 commits into
mainfrom
claude/ci-fmt-check-phase-0cnVE
May 24, 2026
Merged

ci: extract fmt check into parallel job, add fmt:check mise task#305
richardthe3rd merged 6 commits into
mainfrom
claude/ci-fmt-check-phase-0cnVE

Conversation

@richardthe3rd

Copy link
Copy Markdown
Owner

Moves dart format and prettier checks out of the test job into a
dedicated fmt job that runs in parallel with test. build-web and
build-android now require both test and fmt to pass.

Adds dart:format:check, prettier:check, and fmt:check tasks to
mise.toml so developers can run the same check locally before pushing
without triggering code generation.

claude added 2 commits May 23, 2026 21:35
Moves dart format and prettier checks out of the test job into a
dedicated fmt job that runs in parallel with test. build-web and
build-android now require both test and fmt to pass.

Adds dart:format:check, prettier:check, and fmt:check tasks to
mise.toml so developers can run the same check locally before pushing
without triggering code generation.
Adds shfmt -d check to the fmt CI job so shell formatting is enforced
consistently with local dev. Uses the same flags as the local
shell:format task (-i 0 -ci).

Adds mise-tasks/shell/format-check.sh (shell:format:check task) and
includes it in fmt:check depends so developers can run the full check
locally with ./bin/mise run fmt:check.
Copilot AI review requested due to automatic review settings May 23, 2026 22:22
@codecov

codecov Bot commented May 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 refactors CI to run formatting checks in a dedicated fmt job (parallel to test) and adds corresponding local mise tasks so developers can run the same checks before pushing.

Changes:

  • Added dart:format:check, prettier:check, and fmt:check tasks in mise.toml.
  • Introduced a shell formatting check file-task using shfmt.
  • Updated CI to run formatting in a new parallel fmt job and require fmt + test before build-web/build-android.

Reviewed changes

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

File Description
mise.toml Adds formatting “check” tasks and an aggregate fmt:check task.
mise-tasks/shell/format-check.sh Adds a shfmt-based shell formatting check task.
.github/workflows/ci.yml Splits formatting checks into a parallel fmt job and updates build job dependencies.

Comment thread mise.toml Outdated

[tasks."fmt:check"]
description = "Check all code formatting (Dart, JS/TS, shell) — fails if any file needs reformatting"
depends = ['dart:format:check', 'prettier:check', 'shell:format:check']
Comment thread .github/workflows/ci.yml
Comment on lines +77 to +78
curl -sSL "https://github.com/mvdan/sh/releases/download/v3.8.0/shfmt_v3.8.0_linux_amd64" -o /usr/local/bin/shfmt
chmod +x /usr/local/bin/shfmt
Comment thread .github/workflows/ci.yml
Comment on lines +69 to +74
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'

claude added 4 commits May 24, 2026 06:28
File-tasks use hyphens in their name (shell:format-check), not colons.
Without pub get, .dart_tool/package_config.json is absent and dart
format falls back to the SDK language version rather than the package
language version, producing different output for trailing-comma style.
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Cloudflare Pages Preview

Your preview deployment is ready!

Preview URL: https://claude-ci-fmt-check-phase-0c.staging-cambeerfestival.pages.dev

This preview will be automatically updated when you push new commits to this PR.

@richardthe3rd
richardthe3rd merged commit 49572f1 into main May 24, 2026
12 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.

3 participants