Add markdownlint to CI action (#33)
* Add markdownlint to CI workflow * Add empty markdown lint rules template * Remove if: always() from markdownlint CI
Delta semántico
Ninguna definición cambió: el cambio es de texto, documentación o datos.
2 archivos · +51 −1
diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml
new file mode 100644
index 000000000..8bdfc20fc
--- /dev/null
+++ b/.github/linters/.markdown-lint.yml
@@ -0,0 +1,35 @@
+---
+###########################
+###########################
+## Markdown Linter rules ##
+###########################
+###########################
+
+# Linter rules doc:
+# - https://github.com/DavidAnson/markdownlint
+#
+# Note:
+# To comment out a single error:
+# <!-- markdownlint-disable -->
+# any violations you want
+# <!-- markdownlint-restore -->
+#
+
+###############
+# Rules by id #
+###############
+# MD004: false # Unordered list style
+# MD007:
+# indent: 2 # Unordered list indentation
+# MD013:
+# line_length: 400 # Line length 80 is far to short
+# MD026:
+# punctuation: ".,;:!。,;:" # List of not allowed
+# MD029: false # Ordered list item prefix
+# MD033: false # Allow inline HTML
+# MD036: false # Emphasis used instead of a heading
+
+#################
+# Rules by tags #
+#################
+# blank_lines: false # Error on blank lines
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 51e280c97..ca05d5b97 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -61,4 +61,19 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: clippy
- args: -- -D warnings
\ No newline at end of file
+ args: -- -D warnings
+
+ markdownlint:
+ name: Markdown Lint
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ # Full git history is needed to get a proper list of changed files within `super-linter`
+ fetch-depth: 0
+ - name: Run Markdown Lint
+ uses: docker://ghcr.io/github/super-linter:slim-v4
+ env:
+ VALIDATE_ALL_CODEBASE: false
+ VALIDATE_MARKDOWN: true
+ DEFAULT_BRANCH: master