Skip to content

tests.yml: the actionlint step lints itself and the family template's workflow too, not only the assembly-root one (#127) - #129

Merged
brettheap merged 1 commit into
mainfrom
ci/actionlint-lints-tests-yml-too
Sep 11, 2026
Merged

brettheap merged 1 commit into
mainfrom
ci/actionlint-lints-tests-yml-too

Conversation

@brettheap

@brettheap brettheap commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openreposhape-2 (openRepoShape-2)
Claim: #127 (comment)

Closes #127.

What was wrong

.github/workflows/tests.yml installs actionlint and then runs it against
exactly one file: templates/assembly-root/.github/workflows/validate.yml,
the workflow this repository ships into a scaffolded project. Nothing
linted templates/family-root/.github/workflows/validate.yml (the same
kind of shipped-out workflow, for a family holder instead of a project), and
nothing linted tests.yml itself — the workflow that runs on every push
and pull request in this repository. PR #124 (issue #122) had just added an
if: guard on two jobs and a concurrency: expression to tests.yml,
with no lint anywhere in the loop that would have caught a typo in either.

What landed

The existing actionlint step now takes three paths instead of one:
.github/workflows/tests.yml,
templates/assembly-root/.github/workflows/validate.yml and
templates/family-root/.github/workflows/validate.yml. Renamed the step
and its comment to say it covers the workflow nobody here runs and the ones
everybody here runs. No file under templates/ was touched — only
.github/workflows/tests.yml, which is not one of the digest-pinned
copies listed in the shared brief.

How it was proven

  • Downloaded actionlint 1.7.12 the same way the workflow's own install step
    does (checksum-verified release tarball), into a scratchpad, and ran it
    against all three paths the new step runs: exit 0, no findings,
    including against tests.yml itself as amended in this PR. So the new
    step does not need to fix anything to land green.
  • python3 -c "import yaml; yaml.safe_load(open('.github/workflows/tests.yml'))"
    — parses.
  • Grepped tests/ for anything asserting on the actionlint step's name or
    on tests.yml's job list: three files mention tests.yml in prose
    (test_repo_hygiene.py, test_scaffold_e2e.py, test_cli_reference.py)
    but none assert on the actionlint step's name or count, so nothing else
    needed updating.
  • Full suite from the worktree, foreground, split in two:
    tests/test_[a-m]*.py → 366 passed, 1 skipped;
    tests/test_[n-z]*.py → 766 passed. 1132 passed / 1 skipped total,
    matching the brief's expectation for current main.

🤖 Generated with Claude Code

Summary by Sourcery

Ensure actionlint checks the repository workflow alongside both scaffolded workflows.

Enhancements:

  • Expand workflow linting to cover this repository’s workflow and both workflows shipped in project and family scaffolds.

CI:

  • Update the actionlint CI step to validate all three relevant GitHub Actions workflow files.

… workflow too, not only the assembly-root one (#127)

The step that installs actionlint ran it against exactly one file --
templates/assembly-root/.github/workflows/validate.yml, the workflow this
repository ships into a scaffolded project. templates/family-root's own
validate.yml was in the same boat, and neither lint ever touched
.github/workflows/tests.yml itself: the workflow that runs on every push
and pull request here. #122/#124 just added an `if:` guard on two jobs and
a `concurrency:` expression to that file, with nothing in the loop that
would have caught a typo in either.

Hand actionlint all three paths from the one step it already runs from,
and rename it to say so. actionlint 1.7.12 finds nothing to fix in any of
the three files as they stand.

Lane: openreposhape-2 (openRepoShape-2)

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 11, 2026 23:21
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 2 days and 17 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@sourcery-ai

sourcery-ai Bot commented Sep 11, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the CI workflow’s actionlint step to lint the repository workflow itself and both shipped template workflows, closing validation gaps without modifying template files or other CI behavior.

File-Level Changes

Change Details Files
Expand the actionlint coverage in the repository’s workflow validation step.
  • Rename the step to reflect all workflows it checks.
  • Add .github/workflows/tests.yml to actionlint inputs.
  • Add the family-root template workflow alongside the existing assembly-root workflow.
  • Update the explanatory comment to document the coverage and rationale.
.github/workflows/tests.yml

Assessment against linked issues

Issue Objective Addressed Explanation
#127 Extend the actionlint invocation in .github/workflows/tests.yml to lint the repository's own workflow, .github/workflows/tests.yml, in addition to the existing assembly-root template workflow. ✅
#127 Add templates/family-root/.github/workflows/validate.yml to the workflows checked by actionlint. ✅
#127 Update the actionlint step's name and explanatory comment to reflect that it now covers both shipped template workflows and the repository's own workflow, while ensuring the expanded check passes. ✅

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved issues were identified.

Pull request overview

Expands CI actionlint coverage to validate the repository workflow and both shipped workflow templates.

Changes:

  • Adds tests.yml and the family-root workflow to actionlint inputs.
  • Updates the step name and documentation.
File summaries
File Description
.github/workflows/tests.yml Expands actionlint coverage to all three relevant workflows.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

tests.yml's actionlint step lints the template workflow it ships but never lints itself, or the family template's workflow

2 participants