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

Commit 0ead19f

Browse files
committed
Linter update
Sync the linting workflow Use symlink for markdown rules
1 parent 79aa0c4 commit 0ead19f

File tree

2 files changed

+77
-44
lines changed

2 files changed

+77
-44
lines changed

.github/workflows/pull-requests.yml

+76-19
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,76 @@
1-
name: Markdown linting for PRs
2-
3-
on:
4-
pull_request:
5-
paths:
6-
- docs/**
7-
8-
jobs:
9-
markdown-linting:
10-
runs-on: ubuntu-latest
11-
12-
steps:
13-
- uses: actions/checkout@v3
14-
- name: Set up Ruby
15-
uses: actions/setup-ruby@v1
16-
- name: Install mdl gem
17-
run: gem install mdl
18-
- name: Run mdl
19-
run: mdl --style=_checks/styles/style-rules-prod --ignore-front-matter -- docs
1+
---
2+
###########################
3+
###########################
4+
## Linter GitHub Actions ##
5+
###########################
6+
###########################
7+
name: Lint Code Base
8+
9+
#
10+
# Documentation:
11+
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
12+
#
13+
14+
###################################
15+
# Start the job on a pull request #
16+
###################################
17+
on:
18+
pull_request
19+
20+
###############
21+
# Set the Job #
22+
###############
23+
permissions:
24+
contents: read
25+
26+
jobs:
27+
mdl:
28+
name: mdl
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v3
32+
- name: Set up Ruby
33+
uses: ruby/setup-ruby@v1
34+
- name: Install mdl gem
35+
run: gem install mdl
36+
- name: Run mdl
37+
run: mdl --style=_checks/styles/style-rules-prod --ignore-front-matter --git-recurse -- docs
38+
super-lint:
39+
# Set the agent to run on
40+
runs-on: ubuntu-latest
41+
42+
##################
43+
# Load all steps #
44+
##################
45+
steps:
46+
##########################
47+
# Checkout the code base #
48+
##########################
49+
- name: Checkout Code
50+
uses: actions/checkout@v3
51+
with:
52+
# Full git history is needed to get a proper list of changed files within `super-linter`
53+
fetch-depth: 0
54+
55+
################################
56+
# Run Linter against code base #
57+
################################
58+
- name: Lint Code Base
59+
uses: github/super-linter/[email protected]
60+
env:
61+
VALIDATE_ALL_CODEBASE: false
62+
DEFAULT_BRANCH: master
63+
VALIDATE_BASH: true
64+
VALIDATE_BASH_EXEC: true
65+
VALIDATE_CSS: true
66+
VALIDATE_DOCKERFILE_HADOLINT: true
67+
VALIDATE_GITHUB_ACTIONS: true
68+
VALIDATE_GITLEAKS: true
69+
VALIDATE_JAVASCRIPT_ES: true
70+
VALIDATE_JSON: true
71+
VALIDATE_MARKDOWN: true
72+
MARKDOWN_CONFIG_FILE: .markdownlint.json
73+
VALIDATE_RUBY: true
74+
VALIDATE_SHELL_SHFMT: true
75+
VALIDATE_YAML: true
76+

.markdownlint.json

-25
This file was deleted.

.markdownlint.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.github/linters/.markdownlint.json

0 commit comments

Comments
 (0)