3131 matrix :
3232 # Add new matrix suites to branch protection required checks too.
3333 name :
34- # Lists every src directory. Commented-out entries have no suite-specific tests.
34+ # Lists every src directory. Commented-out entries have no tests unless noted .
3535 # - app
3636 - archives
3737 - article-api
4848 # - deployments
4949 # - dev-toc
5050 - early-access
51- # - eslint-rules
51+ - eslint-rules
5252 - events
5353 - fixtures
5454 - frame
8585 env :
8686 # These suites make no HTTP requests, so they skip the Next.js build and test server.
8787 # A suite that adds an HTTP test fails with a connection error until it's removed from this list.
88- START_VITEST_SERVER : ${{ contains(fromJSON('["color-schemes", "content-linter", "data-directory", "ghes-releases", "journeys", "links", "observability", "products", "tools", "workflows"]'), matrix.name) && 'false' || 'true' }}
88+ START_VITEST_SERVER : ${{ contains(fromJSON('["color-schemes", "content-linter", "data-directory", "eslint-rules", " ghes-releases", "journeys", "links", "observability", "products", "tools", "workflows"]'), matrix.name) && 'false' || 'true' }}
8989
9090 steps :
9191 # Repeat each if on its step so skipped work still leaves the required check present.
@@ -171,8 +171,9 @@ jobs:
171171 run : npm run build
172172
173173 - uses : ./.github/actions/warmup-remotejson-cache
174- # Only routing tests cover archived enterprise server URLs.
175- if : ${{ matrix.name == 'redirects' }}
174+ # The archives and redirects suites request archived GHES redirects.json files.
175+ # keep-caches-warm.yml seeds this cache in docs-internal only; a cold warmup fetches every archived version.
176+ if : ${{ matrix.name == 'redirects' || (matrix.name == 'archives' && github.repository == 'github/docs-internal') }}
176177
177178 - uses : ./.github/actions/setup-elasticsearch
178179 if : ${{ matrix.name == 'search' || matrix.name == 'languages' }}
@@ -197,4 +198,5 @@ jobs:
197198 VITEST_FLAGS : ${{ matrix.name == 'article-api' && '--no-file-parallelism --maxWorkers=1' || '' }}
198199 # PRs render pinned autogenerated pages unless they change pipeline code or output.
199200 AUTOGENERATED_RENDER_ALL : ${{ matrix.name == 'automated-pipelines' && (github.event_name != 'pull_request' || steps.pipeline_files.outputs.any_modified == 'true') }}
200- run : npm test -- $VITEST_FLAGS src/${{ matrix.name }}/tests/
201+ # Filter on the whole src directory so nested tests/ folders, like src/webhooks/lib/tests/, run too.
202+ run : npm test -- $VITEST_FLAGS src/${{ matrix.name }}/
0 commit comments