Skip to content

lint and format .yaml files as well as .yml #1975

lint and format .yaml files as well as .yml

lint and format .yaml files as well as .yml #1975

Workflow file for this run

name: Markdownlint (All files)
on:
pull_request:
paths:
- .markdownlint-cli2.jsonc
- .nvmrc
- .prettier*
- package.json
- package-lock.json
- .github/workflows/markdown-lint.yml
- .github/workflows/markdownlint-problem-matcher.json
# No GITHUB_TOKEN permissions, as we only use it to increase API limit.
permissions: {}
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup Node.js environment
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: ".nvmrc"
cache: npm
- name: Install
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint markdown files
run: |
echo "::add-matcher::.github/workflows/markdownlint-problem-matcher.json"
npm run lint:md
npm run lint:fm