Skip to content

[Bug] Lint and Test Workflows Failing on Markdown-Only PRs #30

@Limeload

Description

@Limeload

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

  1. Open a pull request that only updates Markdown files (e.g., README.md or CONTRIBUTING.md).
  2. Wait for GitHub Actions to run.
  3. 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 (lint and test) 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.
  • 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.


Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions