Skip to content

Commit 8dec0c0

Browse files
authored
Merge pull request #8 from ashishb/ashishb/ci
ci: add Markdown linter
2 parents a7f7712 + 261b2a7 commit 8dec0c0

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.github/workflows/lint-markdown.yaml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Generated by Gabo (https://github.com/ashishb/gabo)
2+
---
3+
# Run this locally with act - https://github.com/nektos/act
4+
# act -j lintMarkdown
5+
name: Lint Markdown
6+
7+
on: # yamllint disable-line rule:truthy
8+
push:
9+
branches: [main, master]
10+
paths:
11+
- "**.md"
12+
- ".github/workflows/lint-markdown.yaml"
13+
pull_request:
14+
branches: [main, master]
15+
paths:
16+
- "**.md"
17+
- ".github/workflows/lint-markdown.yaml"
18+
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
23+
# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
24+
permissions:
25+
contents: read
26+
27+
jobs:
28+
lintMarkdown:
29+
runs-on: ubuntu-latest
30+
timeout-minutes: 15
31+
32+
steps:
33+
- name: Checkout repository
34+
uses: actions/checkout@v4
35+
with:
36+
persist-credentials: false
37+
38+
- name: Set up Ruby
39+
# See https://github.com/ruby/setup-ruby#versioning
40+
uses: ruby/setup-ruby@v1
41+
with:
42+
ruby-version: 3.0
43+
44+
- name: Install dependencies
45+
run: gem install mdl
46+
47+
- name: Run tests
48+
# Rule list: https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md
49+
# Don't check for line length (MD013)
50+
# Don't care about list ordering (MD029)
51+
run: mdl --git-recurse --rules ~MD013,~MD029 .

FakeApps/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# FakeApps
2+
23
Theses are in 3 categories:
4+
35
- ``does nothing`` apps
46
- ``impersonator app`` apps
57
- ``real app but with malicious code`` apps

0 commit comments

Comments
 (0)