Skip to content

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

lint and format .yaml files as well as .yml

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

Workflow file for this run

name: Lint YAML
on:
pull_request:
paths:
- .github/workflows/pr-check_yml.yml
- .nvmrc
- package.json
- package-lock.json
- "*.yml"
- "*.yaml"
- "**/*.yml"
- "**/*.yaml"
# No GITHUB_TOKEN permissions, as we only use it to increase API limit.
permissions: {}
jobs:
lint-yml:
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 yml files
run: npm run lint:yml