Skip to content

Commit

Permalink
Add spellcheck gha for docs (#5075)
Browse files Browse the repository at this point in the history
  • Loading branch information
ansermino authored Dec 13, 2024
1 parent f58b181 commit 502e3ef
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Docs Check

# Cancel workflow if there is a new change to the branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

on:
push:
branches:
- main
paths:
- '**.md'
- '.github/workflows/docs-check.yml'
merge_group:
pull_request:
branches:
- main
paths:
- '**.md'
- '.github/workflows/docs-check.yml'

jobs:
docs-check:
name: Check
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
# See https://github.com/actions/setup-node/issues/1027
# cache: yarn
- run: corepack enable
- run: make format-spellcheck-dictionary-check
- run: yarn --immutable
- run: yarn typecheck
- run: yarn spellcheck
- run: yarn format-check
- run: yarn build

0 comments on commit 502e3ef

Please sign in to comment.