mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-24 20:09:02 +00:00
Hold the docs tests to the checkout CI makes: studio/ skipped, a minute per test
Hanzo CI/CD / test (linux-amd64) (push) Skipped
Hanzo CI/CD / test (linux-arm64) (push) Skipped
Hanzo CI/CD / test-advisory (push) Skipped
Hanzo CI/CD / test-amd64 (push) Successful in 7m17s
Hanzo CI/CD / cicd (push) Successful in 27m37s
CI/CD / cicd (push) Successful in 34m59s
Hanzo CI/CD / test (linux-amd64) (push) Skipped
Hanzo CI/CD / test (linux-arm64) (push) Skipped
Hanzo CI/CD / test-advisory (push) Skipped
Hanzo CI/CD / test-amd64 (push) Successful in 7m17s
Hanzo CI/CD / cicd (push) Successful in 27m37s
CI/CD / cicd (push) Successful in 34m59s
On the forge runner the checkout carries the hanzo-docs/studio-docs submodule, whose pages name its own /api/ paths, so no-api-prefix.test skips studio/ as it skips the projects/ mirror. The runner's sandbox parses the API document slower than vitest's 5s default, so the docs project allows a minute per test. Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
@@ -15,11 +15,14 @@ const REPO = path.resolve(APP, '../..');
|
||||
const API_PATH = /(?<![A-Za-z0-9._~\-/])\/api(\/|(?![\w.\-]))/;
|
||||
|
||||
// Not ours to hold: migration guides show the OTHER vendor's API on the left of
|
||||
// each table; projects/ mirrors other repos' docs; public/reference is vendored;
|
||||
// the rest states this very rule or is the SDK-owned segment the API documents.
|
||||
// each table; projects/ mirrors other repos' docs; studio/ is the
|
||||
// hanzo-docs/studio-docs submodule, edited in that repo; public/reference is
|
||||
// vendored; the rest states this very rule or is the SDK-owned segment the API
|
||||
// documents.
|
||||
const SKIP = [
|
||||
'content/docs/guides/migrate/',
|
||||
'content/docs/projects/',
|
||||
'content/docs/studio/',
|
||||
'content/docs/contributing/style.mdx',
|
||||
'public/reference/',
|
||||
'openapi-specs/',
|
||||
|
||||
@@ -23,6 +23,10 @@ export default defineConfig({
|
||||
name: 'docs',
|
||||
root: './apps/docs',
|
||||
exclude: ['**/node_modules/**', '**/dist/**', 'content/docs/projects/**', 'e2e/**'],
|
||||
// Several tests parse the whole API document. A sandboxed CI runner
|
||||
// takes longer than vitest's 5s default for that; a minute still
|
||||
// catches a test that hangs.
|
||||
testTimeout: 60_000,
|
||||
},
|
||||
},
|
||||
// The bot docs' converter, and nothing under content/: those pages are
|
||||
|
||||
Reference in New Issue
Block a user