diff --git a/.github/workflows/grafana-plugin.yml b/.github/workflows/grafana-plugin.yml index 34cf4b02..110e97f8 100644 --- a/.github/workflows/grafana-plugin.yml +++ b/.github/workflows/grafana-plugin.yml @@ -43,6 +43,7 @@ jobs: run: | cd connectors/grafana-plugin/ npm ci + npm run test:ci npm run build - name: Install dependencies and Build backend @@ -50,6 +51,12 @@ jobs: cd connectors/grafana-plugin/ ./backend-compile.sh + # go.sum is not checked in; backend-compile.sh resolves it, so the tests run after it. + - name: Test backend + run: | + cd connectors/grafana-plugin/ + go test ./pkg/... + # The job above exercises the npm path directly. This one exercises the Maven # entrypoint (`mvn -Pwith-grafana-plugin`), which drives the same frontend build # through frontend-maven-plugin. Without it that path is unverified: the module is