Repository navigation
56 lines (50 loc) · 1.61 KB
/
Copy pathlint.yml
File metadata and controls
56 lines (50 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up pnpm, Node.js and dependencies
uses: ./.github/actions/setup
with:
cache: true
- name: Check immutable pnpm-lock.yaml
run: git diff --exit-code
- name: Add CSpell problem matcher
run: echo "::add-matcher::.github/workflows/cspell-problem-matcher.json"
# Independent read-only checks: run them concurrently
# A failing check doesn't hide the results of the other ones
# Keep in sync with the "lint" script of package.json
# See https://github.blog/changelog/2026-06-25-actions-steps-can-now-be-run-in-parallel/
- parallel:
- name: ESLint
run: pnpm lint:js --quiet
- name: Stylelint
run: pnpm lint:style
- name: Spelling
run: pnpm lint:spelling
- name: Syncpack
run: pnpm lint:syncpack
- name: Catalogs
run: pnpm lint:catalogs
- name: Check deduped pnpm-lock.yaml
run: pnpm lint:deps
- name: Knip
run: pnpm lint:knip
- name: Knip production
run: pnpm lint:knip:production
- name: Check Formatting
run: pnpm format:diff