Skip to content
This repository was archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
Replaces super-linter with markdown linter
Browse files Browse the repository at this point in the history
We use super-linter only to lint markdown files.
New GitHub Action uses the smaeUnderlying linter (markdownlint),
but it provides better output support: PRs get annotations from
CI jobs when there is an linting issue.

Also this action is much faster then super-linter:
at the moment of writing it takes 4-6 seconds
when super-linter slim image takes 90-110 seconds.

Signed-off-by: Mikalai Radchuk <[email protected]>
  • Loading branch information
Mikalai Radchuk authored and m1kola committed Jun 14, 2023
1 parent 4a597b7 commit aa7e9b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/sanity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Lint markdown files
uses: github/super-linter/slim@v4
env:
VALIDATE_ALL_CODEBASE: true
FILTER_REGEX_EXCLUDE: .*\.bingo/.*
DEFAULT_BRANCH: main
# only runs the markdown linter
VALIDATE_MARKDOWN: true
- uses: DavidAnson/markdownlint-cli2-action@v11
with:
config: .markdownlint.yaml
globs: |
**/*.md
!.bingo
7 changes: 7 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Rules by id
MD013:
line_length: 300
MD029: false

# Rules by groups
blank_lines: false

0 comments on commit aa7e9b7

Please sign in to comment.