Skip to content

Make create-readme part of test #238

@chiawendt

Description

@chiawendt

I find the current workflow of generating readme in post-commit sligtly cumbersome. 1. The commit docs: generate docs is noisy. 2. Somehow the post-commit script will fail if I am not in the branch master.

How about this workflow:

  1. Contributor do their work and run test.
  2. Test script generate README (without writing to disk), and check that the generated readme is identical to /README.md. If the REAMDE is not up to date, fail test with the message: Please run "npm run create-readme" to update the docs..
  3. Contributor run npm run create-readme. This script generate README and write it to disk.

This workflow has the benefit that updatedness of README is tested in CI.

What do yo think?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions