-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomershacktoberfesthacktoberfest-accepted
Description
Issue: Lint and Test Workflows Failing on Markdown-Only PRs
Description
Currently, the CI workflows (Ruby on Rails CI / lint and test) are failing even on documentation-only pull requests that modify only Markdown (.md) files.
Ideally, these checks should pass or be skipped when no Ruby or code-related changes are made.
Steps to Reproduce
- Open a pull request that only updates Markdown files (e.g.,
README.mdorCONTRIBUTING.md). - Wait for GitHub Actions to run.
- Observe that lint/test checks fail, even though no code was changed.
Expected Behavior
- Lint and test workflows should either pass automatically or be skipped for non-code (Markdown-only) PRs.
Actual Behavior
- The Ruby on Rails CI workflows (
lintandtest) still run and fail on doc-only PRs. - This blocks merging even when no code is affected.
Possible Solutions
- Update the GitHub Actions configuration to:
- Run lint/test jobs only when code files are changed (e.g.,
**/*.rb,Gemfile, etc.). - Skip these jobs when changes are limited to Markdown or documentation files.
- Run lint/test jobs only when code files are changed (e.g.,
- Add a separate job for docs validation (optional).
Affected Workflows
.github/workflows/rails-lint.yml.github/workflows/rails-test.yml
Additional Context
This will streamline contributor experience and prevent unnecessary workflow failures for doc-related pull requests.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomershacktoberfesthacktoberfest-accepted