Skip to content

Commit 5955fce

Browse files
authored
Add GitHub Super Linter w/ markdownlint as a GitHub Action (#93)
Signed-off-by: Randall <[email protected]> Signed-off-by: Randall <[email protected]>
1 parent 408798e commit 5955fce

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

.github/linters/.markdown-lint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Default state for all rules
2+
default: true
3+
# "~MD013/line-length"
4+
MD013: false
5+
# "~MD025/single-title/single-h1"
6+
MD025: false
7+
# "~MD036/no-emphasis-as-heading"
8+
MD036: false
9+
# "~MD033/no-inline-html"
10+
MD033: false
11+
# "~MD049/emphasis-style"
12+
MD049: false
13+
# "~MD012/no-multiple-blank"
14+
MD012: false
15+
# "~MD024/no-duplicate-heading/no-duplicate-header"
16+
MD024: false
17+
# "~MD001/heading-increment/header-increment"
18+
MD001: false

.github/workflows/linter.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
#################################
3+
#################################
4+
## Super Linter GitHub Actions ##
5+
#################################
6+
#################################
7+
name: Lint Code Base
8+
9+
#############################
10+
# Start the job on all push #
11+
#############################
12+
on:
13+
push:
14+
branches-ignore: [master, main]
15+
# Remove the line above to run when pushing to master
16+
pull_request:
17+
branches: [master, main]
18+
19+
###############
20+
# Set the Job #
21+
###############
22+
jobs:
23+
build:
24+
# Name the Job
25+
name: Lint Code Base
26+
# Set the agent to run on
27+
runs-on: ubuntu-latest
28+
29+
##################
30+
# Load all steps #
31+
##################
32+
steps:
33+
##########################
34+
# Checkout the code base #
35+
##########################
36+
- name: Checkout Code
37+
uses: actions/checkout@v3
38+
with:
39+
# Full git history is needed to get a proper
40+
# list of changed files within `super-linter`
41+
fetch-depth: 0
42+
43+
#########################################
44+
# Run Linter against new Markdown files #
45+
#########################################
46+
- name: Lint Markdown
47+
uses: github/super-linter@v4
48+
env:
49+
VALIDATE_ALL_CODEBASE: false
50+
DEFAULT_BRANCH: master
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
VALIDATE_MARKDOWN: true
53+
MARKDOWN_CONFIG_FILE: .markdown-lint.yml

0 commit comments

Comments
 (0)