mirror of
https://github.com/facebook/docusaurus.git
synced 2026-06-28 19:49:24 -04:00
449eca0f48
Signed-off-by: dependabot[bot] <support@github.com>
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Lint
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- docusaurus-v**
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
timeout-minutes: 30
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
|
|
- name: Set up Node
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
|
with:
|
|
node-version: lts/*
|
|
cache: pnpm
|
|
- name: Installation
|
|
run: pnpm install --frozen-lockfile || pnpm install --frozen-lockfile || pnpm install --frozen-lockfile
|
|
- name: Check immutable pnpm-lock.yaml
|
|
run: git diff --exit-code
|
|
|
|
- name: Lint
|
|
run: |
|
|
echo "::add-matcher::.github/workflows/cspell-problem-matcher.json"
|
|
pnpm lint:ci
|
|
|
|
- name: Check Formatting
|
|
run: pnpm format:diff
|