diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e580570f264..f6dc24ce547 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -63,6 +63,38 @@ jobs: echo "" done < <(find . -name "Dockerfile") exit $total_exit_code + - name: Remark + run: | + npm install --global yarn + + yarn add remark-cli \ + remark-lint-mdash-style \ + https://github.com/typeable/remark-validate-links#anchors \ + remark-preset-lint-recommended \ + remark-lint-no-dead-urls + + total_exit_code=0 + while IFS= read -r file; do + yarn run remark -f \ + -u validate-links \ + -u remark-lint-mdash-style \ + -u remark-lint-final-newline \ + -u remark-lint-list-item-bullet-indent \ + -u remark-lint-no-blockquote-without-marker \ + -u remark-lint-ordered-list-marker-style \ + -u remark-lint-no-literal-urls \ + -u remark-lint-hard-break-spaces \ + -u remark-lint-no-duplicate-definitions \ + -u remark-lint-no-heading-content-indent \ + -u remark-lint-no-inline-padding \ + -u remark-lint-no-shortcut-reference-image \ + -u remark-lint-no-shortcut-reference-link \ + -u remark-lint-no-undefined-references \ + -u remark-lint-no-unused-definitions \ + -u remark-lint-no-dead-urls \ + $file || total_exit_code=$? + done < <(find . -name "*.md" -not -path "*/node_modules/*" -not -path "./.github/*") + exit $total_exit_code - name: Cargo clippy run: | SKIP_WASM_BUILD=1 cargo clippy -- -D warnings