mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-29 21:49:33 +00:00
bd746145b0
This should speed up any docs-only PRs so that they don't have to run the full 5 minute battery of tests. Release Notes: - N/A
33 lines
749 B
YAML
33 lines
749 B
YAML
name: Docs
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "docs/**"
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
check_formatting:
|
|
name: "Check formatting"
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
|
|
|
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
|
|
with:
|
|
version: 9
|
|
|
|
- name: Prettier Check on /docs
|
|
working-directory: ./docs
|
|
run: |
|
|
pnpm dlx prettier . --check || {
|
|
echo "To fix, run from the root of the zed repo:"
|
|
echo " cd docs && pnpm dlx prettier . --write && cd .."
|
|
false
|
|
}
|
|
|
|
- name: Check spelling
|
|
run: script/check-spelling docs/
|