mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(ci): validate Grafana dashboard JSON (#3382)
This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user