Localized file check-in by OneLocBuild Task: Build definition ID 1159: Build ID 2814832 #11724
This file contains hidden or 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: Markdownlint | |
permissions: | |
contents: read | |
# run even on changes without markdown changes, so that we can | |
# make it in GitHub a required check for PR's | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.2.2 | |
- name: Use Node.js | |
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
with: | |
node-version: 16.x | |
- name: Run Markdownlint | |
run: | | |
echo "::add-matcher::.github/workflows/markdownlint-problem-matcher.json" | |
npm i -g [email protected] | |
markdownlint "docs/**/*.md" |