Skip to content

ci: run Playwright only when the library or the test app change - #28

Merged
diecodev merged 2 commits into
v2from
ci/e2e-only-when-needed
Oct 30, 2026
Merged

diecodev merged 2 commits into
v2from
ci/e2e-only-when-needed

Conversation

@diecodev

Copy link
Copy Markdown
Owner

Playwright only runs when the pull request (or the push) touches something it tests. A website- or docs-only change no longer waits for chromium and webkit.

Changes

  • New e2e.yml: the Playwright job moves out of ci.yml into its own workflow, filtered by path. It runs on push to main/v2 and on pull requests that touch:

    • the library and the test app: src/**, test/**;
    • the build and Playwright config: playwright.config.ts, vite.config.ts, tsconfig.json, tsconfig.lib.json;
    • the dependencies: package.json, pnpm-lock.yaml, pnpm-workspace.yaml;
    • CI: .github/actions/setup/** (Node/pnpm versions) and the workflow itself.

    It no longer waits for verify, because it builds the library itself, so the two run in parallel.

  • ci.yml: keeps lint, types and the library and website builds, on every push and pull request.

  • release.yml: calls e2e.yml explicitly, and stage waits for ci, e2e and version. A release runs Playwright whatever it changed.

  • Docs: AGENTS.md and CONTRIBUTING.md describe the split.

Checks

The three workflows parse, and the release's job graph is stage ← ci + e2e + version. This PR touches e2e.yml, so it runs E2E itself. A PR that only touches website/ will show only CI.

The Playwright suite drives the library (src/) through the test app (test/), but it ran on every push and pull request, so website-only changes waited minutes for it. It moves to e2e.yml, which only runs when src/, test/, their build and Playwright config, the dependencies or the CI setup change. The release calls it explicitly, so nothing ships without it.
@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
qwik-sonner Ignored Ignored Preview Oct 30, 2026 4:37am UTC

@diecodev
diecodev merged commit 8d7693e into v2 Oct 30, 2026
5 checks passed
@diecodev
diecodev deleted the ci/e2e-only-when-needed branch October 30, 2026 04:37
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