Add standalone lint workflow for branches and PRs
Lint, build, test and deploy / build (push) Successful in 1m33s
Lint, build, test and deploy / test (push) Successful in 6s
Lint, build, test and deploy / deploy (push) Successful in 3s

This commit is contained in:
Leon Xu committed 2026-11-29 14:55:58 -08:00
1 parent 766b5c59e8
commit 14a3e35e29
2 files changed
+31

No files matched your search

+27
View File
@@ -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