2024-07-27 19:47:48 +00:00
|
|
|
name: Docs
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- "docs/**"
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check_formatting:
|
|
|
|
name: "Check formatting"
|
2024-10-17 16:50:19 +00:00
|
|
|
if: github.repository_owner == 'zed-industries'
|
2024-07-27 19:47:48 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-10-09 22:24:10 +00:00
|
|
|
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
2024-07-27 19:47:48 +00:00
|
|
|
|
2024-07-29 13:06:19 +00:00
|
|
|
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
|
2024-07-27 19:47:48 +00:00
|
|
|
with:
|
|
|
|
version: 9
|
|
|
|
|
2024-10-06 14:28:39 +00:00
|
|
|
- name: Prettier Check on /docs
|
|
|
|
working-directory: ./docs
|
|
|
|
run: |
|
2024-09-17 14:06:33 +00:00
|
|
|
pnpm dlx prettier . --check || {
|
|
|
|
echo "To fix, run from the root of the zed repo:"
|
|
|
|
echo " cd docs && pnpm dlx prettier . --write && cd .."
|
|
|
|
false
|
|
|
|
}
|
|
|
|
|
2024-10-17 16:50:19 +00:00
|
|
|
- name: Check for Typos with Typos-CLI
|
|
|
|
uses: crate-ci/typos@v1.24.6
|
|
|
|
with:
|
|
|
|
config: ./typos.toml
|
|
|
|
files: ./docs/
|