1
0
Fork 0
mirror of https://github.com/kdeldycke/awesome-falsehood.git synced 2024-11-20 11:35:56 -05:00

Lint markdown in addition to awesome list.

This commit is contained in:
Kevin Deldycke 2020-08-03 14:37:12 +02:00
parent 9ddbb6eb59
commit 3a6943843b
No known key found for this signature in database
GPG key ID: C572BB01B1ED5A3A
2 changed files with 28 additions and 5 deletions

13
.github/markdown-lint.yaml vendored Normal file
View file

@ -0,0 +1,13 @@
# See example at: https://github.com/avto-dev/markdown-lint/blob/master/lint/config/changelog.yml
# Line length <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md013>
# XXX Temporary disabled because of line continuation edge-case. See:
# https://github.com/DavidAnson/markdownlint/issues/302
MD013: false
# Inline HTML <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md033>
# is allowed for beautiful rendering on GitHub.
MD033:
# Whitelist some elements for beautiful rendering on GitHub.
allowed_elements:
- 'img'

View file

@ -1,4 +1,4 @@
name: Lint Awesome List
name: Lint
on:
push:
pull_request:
@ -8,12 +8,22 @@ on:
jobs:
lint:
name: Lint
lint-markdown:
name: Lint markdown
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2.3.1
- uses: avto-dev/markdown-lint@v1.3.1
with:
config: '.github/markdown-lint.yaml'
args: './**/*.md'
lint-awesome:
name: Lint Awesome list
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.1
with:
# Fetch all history to please linter's age checks.
fetch-depth: 0
- uses: max/awesome-lint@master
- uses: max/awesome-lint@v2.0.0