Skip to content

feat(playwright): add plugin-directory input to e2e-version - #696

Draft
sunker wants to merge 5 commits into
mainfrom
feat/e2e-version-plugin-path
Draft

feat(playwright): add plugin-directory input to e2e-version#696
sunker wants to merge 5 commits into
mainfrom
feat/e2e-version-plugin-path

Conversation

@sunker

@sunker sunker commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Test branch for grafana/plugin-actions#212, which adds a plugin-directory input to the e2e-version action.

Do not merge — this pins to a commit SHA on an unreleased branch. Once plugin-actions PR #212 is merged and tagged, this should be redone against the release tag.

What this adds

Passes the existing plugin-directory input through to the e2e-version action in both playwright.yml and playwright-docker.yml, so the action can find src/plugin.json in the correct location for plugins in subdirectories (e.g. monorepos).

No new inputs are needed in ci.yml or cd.yml — the existing plugin-directory input already flows through.

Why this is better than reading plugin.json in the workflow

The e2e-version action already knows how to read grafanaDependency from plugin.json — it just needs to know where to look. Keeping that logic in the action avoids duplicating it in the workflow and means any other consumer of e2e-version gets the fix automatically.

Testing

Point a plugin's CI at this branch:

uses: grafana/plugin-ci-workflows/.github/workflows/ci.yml@feat/e2e-version-plugin-path
with:
  plugin-directory: path/to/plugin

Wires the plugin-path input through ci.yml, cd.yml, playwright.yml and
playwright-docker.yml for testing against grafana/plugin-actions#212
(feat/plugin-path-input, pinned to c81db32).

This is a test branch - not for merging until plugin-actions PR #212 is
released.
@grafana-plugins-platform-bot grafana-plugins-platform-bot Bot moved this from 📬 Triage to 🔬 In review in Grafana Catalog Team Apr 24, 2026
@sunker sunker self-assigned this Apr 24, 2026
@sunker sunker changed the title feat(playwright): add plugin-path input to e2e-version feat(playwright): add plugin-directory input to e2e-version Apr 27, 2026
@sunker

sunker commented Apr 29, 2026

Copy link
Copy Markdown
Contributor Author

@joeblubaugh can you please confirm this PR solves the problem in your plugin?

@tolzhabayev

Copy link
Copy Markdown
Contributor

@sunker obsolete?

@sunker

sunker commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

pinging @joeblubaugh once again before closing this draft

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

Labels

None yet

Projects

Status: 🔬 In review

Development

Successfully merging this pull request may close these issues.

2 participants