Skip to content

Commit d33e3fa

Browse files
migrated markdown lint script
1 parent b87aa19 commit d33e3fa

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/markdownlint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: markdown lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v1
16+
17+
# installing more packages as proposed in
18+
# https://askubuntu.com/questions/1088662/npm-depends-node-gyp-0-10-9-but-it-is-not-going-to-be-installed
19+
- name: install markdownlint-cli
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install -y npm sudo nodejs-dev node-gyp libssl1.0-dev
23+
npm install markdownlint-cli
24+
25+
- name: lint markdown files
26+
# conly scan the /content folder
27+
run: node_modules/.bin/markdownlint content

0 commit comments

Comments
 (0)