Merge branch 'main' into addHttpMethod-type-signature #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint Docs | |
on: | |
push: | |
branches-ignore: | |
- master | |
- main | |
paths: | |
- "**/*.md" | |
pull_request: | |
branches: | |
- master | |
- main | |
paths: | |
- "**/*.md" | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
build: | |
name: Lint Markdown | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
check-latest: true | |
- name: Install Linter | |
run: npm install --ignore-scripts | |
- name: Add Matcher | |
uses: xt0rted/markdownlint-problem-matcher@1a5fabfb577370cfdf5af944d418e4be3ea06f27 | |
- name: Run Linter | |
run: ./node_modules/.bin/markdownlint-cli2 | |