Skip to content

Commit

Permalink
chore: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
angelosa committed Nov 12, 2023
1 parent 59862d0 commit 9fb9e2e
Show file tree
Hide file tree
Showing 4 changed files with 377 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/mdl_linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ on:
paths:
- "**/*.md"

workflow_dispatch:

jobs:
lint:
name: mdl runner
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
- name: Checkout
uses: actions/checkout@v3
- name: Install PNPM
uses: pnpm/action-setup@v2
with:
node-version: 12.x
version: latest
- name: Install dependencies
run: pnpm install --lockfile=false
- name: Run Markdownlint
run: |
npm i -g markdownlint-cli
markdownlint . -c md_config.json
run: pnpm md:lint
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.vscode
node_modules
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"scripts": {
"md:lint": "markdownlint . -c md_config.json"
},
"dependencies": {
"markdownlint": "^0.29.0",
"markdownlint-cli": "^0.35.0"
}
}
Loading

0 comments on commit 9fb9e2e

Please sign in to comment.