From 4b8af02026af573508487cdfaeacb1740ac7c905 Mon Sep 17 00:00:00 2001 From: catloversg <152669316+catloversg@users.noreply.github.com> Date: Sun, 5 Oct 2025 04:41:02 +0700 Subject: [PATCH] WORKFLOW: Add new job to check generated docs (#2329) --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eebd7d9b3..c30ea520c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,3 +67,20 @@ jobs: run: npm ci - name: Run tests run: npm run test + check-docs: + name: Check docs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js 22 + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: "npm" + - name: Install npm dependencies + run: npm ci + - name: Generate docs + run: npm run doc + - name: Check generated docs + run: | + test -z "$(git status --porcelain)" || (echo "::error title=Documentation is outdated::You need to run 'run npm doc'";exit 1;)