From d7d4145f9ecedcaa54e76c290bd60f02b29e77e0 Mon Sep 17 00:00:00 2001 From: Hugo Oshiro Date: Fri, 15 Nov 2024 10:29:48 +0100 Subject: [PATCH] Chore: Add plugin.json check to CI --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd3943d8c..53d7d595f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -165,6 +165,17 @@ jobs: run: docker compose down working-directory: ./${{ matrix.workingDir }} + - name: Check plugin.json + run: | + mv dist/ ${{ matrix.workingDir }} + zip ${{ matrix.workingDir }}.zip ${{ matrix.workingDir }} -r + + docker run --pull=always \ + -v $PWD/${{ matrix.workingDir }}.zip:/archive.zip \ + grafana/plugin-validator-cli -analyzer=metadatavalid /archive.zip + + working-directory: ./${{ matrix.workingDir }} + - name: Archive E2E output uses: actions/upload-artifact@v4 if: ${{ matrix.workingDir != 'myorg-nobackend-scenesapp' && steps.run-e2e-tests.outcome != 'success' }}