ci (spellcheck, build)
Some checks failed
CI - Docs build check / build-check (push) Failing after 36s
Some checks failed
CI - Docs build check / build-check (push) Failing after 36s
This commit is contained in:
42
.github/workflows/ci-docs.yml
vendored
Normal file
42
.github/workflows/ci-docs.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
name: CI - Docs build check
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.11"
|
||||||
|
|
||||||
|
- name: Spellcheck
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
npx --yes cspell \
|
||||||
|
--config tools/spellcheck/cspell.yml \
|
||||||
|
"docs/**/*.md" \
|
||||||
|
README.md
|
||||||
|
|
||||||
|
- name: Install build dependencies
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
pip install -r mkdocs/requirements.txt
|
||||||
|
|
||||||
|
- name: MkDocs build (strict default)
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
# Default strict on if unset (works in act/Gitea/GitHub)
|
||||||
|
export MKDOCS_STRICT="${MKDOCS_STRICT:-true}"
|
||||||
|
tools/mkdocs_build.sh --config mkdocs/mkdocs.yml
|
||||||
Reference in New Issue
Block a user