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
+16
View File
@@ -0,0 +1,16 @@
if ! command -v dashboard-linter >/dev/null 2>&1; then
echo "dashboard-linter is not installed"
exit 1;
fi
BASE_PATH=$(pwd)
if [[ -z "$BASE_PATH" ]] ; then
BASE_PATH=$(GITHUB_WORKSPACE)
fi
DASHBOARD_PATH="$BASE_PATH/charts/fission-all/dashboards/*"
for f in $DASHBOARD_PATH
do
dashboard-linter lint --strict $f
done