Skip to content

Add readme-ci – run README code blocks and fail CI when the quickstart breaks#846

Open
ondraulehla wants to merge 1 commit into
sdras:mainfrom
ondraulehla:add-readme-ci
Open

Add readme-ci – run README code blocks and fail CI when the quickstart breaks#846
ondraulehla wants to merge 1 commit into
sdras:mainfrom
ondraulehla:add-readme-ci

Conversation

@ondraulehla

Copy link
Copy Markdown

What is this action?

readme-ci executes the fenced code blocks in your README/docs top-to-bottom in an isolated sandbox (throwaway Docker container or E2B cloud sandbox). Working directory and environment persist between blocks – exactly like a reader following the steps – and the first failing block fails CI, with the exact markdown line annotated on the run.

Added at the end of Static Analysis → Testing, per the contribution guidelines (single suggestion, one-line description, Title Casing).

Why it's useful

Quickstarts rot silently: a dependency bumps or a flag renames and the first thing every new user hits is broken, because docs are the one code path nobody executes. This action makes the README a tested artifact – and with fix-pr: 'true' it can even open a pull request with an AI-repaired block, verified by re-running the file.

https://github.com/ondraulehla/readme-ci - a GitHub Action that executes
the fenced code blocks in README/docs inside a sandbox and fails CI when
a quickstart step breaks.
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