mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
44 lines
880 B
YAML
44 lines
880 B
YAML
name: Lint
|
|
|
|
on:
|
|
push: {}
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- ready_for_review
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
# uses version from "packageManager" field in package.json
|
|
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
cache: pnpm
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Install Packages
|
|
run: |
|
|
pnpm install --frozen-lockfile
|
|
env:
|
|
CYPRESS_CACHE_FOLDER: .cache/Cypress
|
|
|
|
- name: Run Linting
|
|
run: pnpm run lint
|
|
|
|
- name: Verify Docs
|
|
working-directory: ./packages/mermaid
|
|
run: pnpm run docs:verify
|