Add dashboard linting workflow (#2529)

Co-authored-by: shaunak_deshmukh <shaunak@infracloud.io>
This commit is contained in:
Shaunak Deshmukh
2022-09-02 13:40:49 +05:30
committed by GitHub
co-authored by shaunak_deshmukh
parent ed6f4ea375
commit e4751d54cb
2 changed files with 50 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
name: Lint dashboards
on:
push:
branches:
- main
paths:
- 'charts/fission-all/dashboards/**.json'
pull_request:
branches:
- main
paths:
- 'charts/fission-all/dashboards/**.json'
workflow_dispatch:
jobs:
lint-dashboards:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18.5
- name: Check out code
uses: actions/checkout@v3
- name: Install dashboard linter
run: |
go install github.com/grafana/dashboard-linter
- name: Run dashboard linter
run: ./hack/lint-dashboards.sh