Skip to content

Skip the unit and E2E suites for screenshot-only changes #784

Open

Description

@ryanwelcher

What problem does this address?

The unit and E2E workflows skip their suites only when every changed file ends in .md (the changes job in unit-tests.yml and e2e.yml). A docs PR that also updates screenshots or the screenshot scripts runs the full suites on macOS and Windows, though nothing in them can be affected. #777 is an example: Markdown, PNGs under docs/public/screenshots/ and two files in scripts/screenshots/.

No test loads scripts/screenshots/. Those scripts import test helpers and src/theme.cjs, not the other way round, and they only run through npm run shots. Lint already covers them and runs on every PR.

What is your proposed solution?

In both changes jobs, treat these as non-code alongside *.md:

  • docs/public/**
  • scripts/screenshots/**

Keep docs/.vitepress/** counted as code.

Activity

  1. added this to the v2.1.0 milestone on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions