1name: Docs
2
3on:
4 pull_request:
5 paths:
6 - "docs/**"
7 push:
8 branches:
9 - main
10
11jobs:
12 check_formatting:
13 name: "Check formatting"
14 runs-on: ubuntu-latest
15
16 steps:
17 - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
18
19 - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
20 with:
21 version: 9
22
23 - name: Prettier Check on /docs
24 working-directory: ./docs
25 run: |
26 pnpm dlx prettier . --check || {
27 echo "To fix, run from the root of the zed repo:"
28 echo " cd docs && pnpm dlx prettier . --write && cd .."
29 false
30 }
31
32 - name: Check spelling
33 run: script/check-spelling docs/