Commit Graph

1 Commits

Author SHA1 Message Date
Sam Seay 728c0db95f
Implement a workflow that lints changed markdown files. (#39707)
* Implement a workflow that lints changed markdown files.

* Supposed to pipe the contents of files not file names.

* Fix typos in the command.

* Test changing a markdown file.

* Use a more reliable action to determine changed files.

* Adjust glob.

* Try a faster setup approach with wp-scripts installed globally

* std in does not work with wp scripts, run markdownlint directly, improve output for multiple file failures

* Try simplify the script.

* Try basic colorizing to help read output.

* separate output with a line, remove ignore because we use stdin for this.

* Play around with separation of output.

* Try use ccze to colorize output more simply.

* Remove attempt at colorizing.

* Copy config from Gutenberg to match, try coloring again.

* Do not fail after first failure found.

* Try capture errors.

* Capture in var and capture error.

* Now we capture, add back colors.

* Minor formatting adjustments.

* More minor formatting improvements.

* Add a second file to test multiple lints.

* Revert changes to md files to show a run with no lint issues.

* Test fixing a markdown file to have a lint pass with changes.

* Revert testing changes to markdown file.

* Revert lock changes we dont have dep changes in this PR.
2023-08-15 09:13:01 +08:00