28 lines
648 B
YAML
28 lines
648 B
YAML
name: Lint
|
|
|
|
# Style checks for work that hasn't reached master yet. Master pushes are
|
|
# linted inside the build job of deploy.yml -- restricting this workflow to
|
|
# branches and PRs avoids a second dependency install on master.
|
|
on:
|
|
push:
|
|
branches-ignore: [master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
|
|
- name: Install dependencies
|
|
run: yarn install --frozen-lockfile
|
|
|
|
- name: Lint Markdown
|
|
run: npx markdownlint-cli2
|