feat(ci): validate Grafana dashboard JSON (#3382)

This commit is contained in:
Alexey Shekhirin
2023-06-26 12:33:20 +01:00
committed by GitHub
parent 9b2a2fbca9
commit 30a1ad2586

View File

@ -52,11 +52,21 @@ jobs:
- name: Check if documentation builds - name: Check if documentation builds
run: RUSTDOCFLAGS="-D warnings" cargo doc --all --no-deps --all-features --document-private-items run: RUSTDOCFLAGS="-D warnings" cargo doc --all --no-deps --all-features --document-private-items
grafana-lint:
name: grafana lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check dashboard JSON with jq
uses: sergeysova/jq-action@v2
with:
cmd: jq empty etc/grafana/dashboards/overview.json
lint-success: lint-success:
if: always() if: always()
name: lint success name: lint success
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [lint, doc-lint] needs: [lint, doc-lint, grafana-lint]
steps: steps:
- name: Decide whether the needed jobs succeeded or failed - name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1 uses: re-actors/alls-green@release/v1