Files
Hexo-Butterfly/.gitea/workflows/lint.yml
T
Leon Xu 14a3e35e29
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
Add standalone lint workflow for branches and PRs
2026-11-29 14:55:58 -08:00

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