Add standalone lint workflow for branches and PRs
This commit is contained in:
1 parent
766b5c59e8
commit
14a3e35e29
2 files changed
+31
No files matched your search
@@ -0,0 +1,27 @@
|
||||
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
|
||||
Reference in new issue
Block a user