Skip to content

Commit 1294fc1

Browse files
fix: add top-level coverage target for Grafana plugin action compatibility
1 parent 723ba20 commit 1294fc1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Magefile.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,5 +211,8 @@ func (Backend) Test() error { return runToolboxCmd("./mage", "sdk:test") }
211211
// BuildAll builds the plugin (both frontend and backend)
212212
func BuildAll() { mg.SerialDeps(Frontend{}.Build, Backend{}.BuildAll) }
213213

214+
// Coverage runs backend tests and makes a coverage report (wrapper for backend:coverage)
215+
func Coverage() error { return Backend{}.Coverage() }
216+
214217
// Default configures the default target (build all plugin components)
215218
var Default = BuildAll

mage

62.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)