Skip to content

ci: run the offlinedocs tests in the offlinedocs job - #33003

Open
nickvigilante wants to merge 1 commit into
vigilante/offline-docs-from-enginefrom
vigilante/offlinedocs-ci-test
Open

nickvigilante wants to merge 1 commit into
vigilante/offline-docs-from-enginefrom
vigilante/offlinedocs-ci-test

Conversation

@nickvigilante

Copy link
Copy Markdown
Collaborator

Summary

Adds a pnpm test step to the offlinedocs job in ci.yaml, between Format and Lint:

- name: Test
  run: |
    cd offlinedocs
    pnpm test

This is the one .github/ change that was in #32564. .github/ is owned by Security, so it is split out for their review. The rest of #32564 doesn't depend on it: the job still runs format, lint and the export without it, and make offlinedocs/check already runs pnpm test.

Why

offlinedocs/ now has tests for the engine release check (engine-release.test.mjs), the docs version mapping (docs-version.test.mjs) and the toolchain check (check-toolchain.test.mjs). 12 tests pass on node 22.23.4. Without this step, CI never runs them.

Merge order

This branch is stacked on #32564 because the test script doesn't exist on main until that PR merges. Merge #32564 first; GitHub then retargets this PR to main. The step changes no permissions, secrets, triggers or actions, and uses no untrusted input.


🤖 Built with AI assistance.

The offlinedocs job runs format, lint and the export but not the tests
for the engine-release check, the docs version mapping and the toolchain
check, which only make offlinedocs/check ran.

Assisted-by: AI

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant