Skip to content

Commit

Permalink
Add remark check in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andor0 committed Oct 22, 2021
1 parent 7a94ad0 commit 29c87ee
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29c87ee

Please sign in to comment.