Skip to content

Commit 4e89327

Browse files
committed
add validate plugin step in ci
1 parent e8a56cf commit 4e89327

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,31 @@ jobs:
6262
name: checkmk-datasource-signed
6363
path: '${{ steps.build-signed.outputs.plugin_path }}'
6464

65+
validate-plugin:
66+
runs-on: ubuntu-latest
67+
needs: build
68+
steps:
69+
- name: Download package from build job
70+
uses: actions/download-artifact@v3
71+
with:
72+
name: checkmk-datasource-signed
73+
74+
- name: Setup Go environment
75+
uses: actions/setup-go@v3
76+
with:
77+
go-version: '1.19'
78+
79+
- name: Install validator
80+
run: |
81+
git clone https://github.com/grafana/plugin-validator
82+
pushd ./plugin-validator/pkg/cmd/plugincheck2
83+
go install
84+
popd
85+
86+
- name: Validate plugin
87+
run: |
88+
plugincheck2 -config ./plugin-validator/config/default.yaml checkmk-checkmk-datasource-*.zip
89+
6590
e2e:
6691
runs-on: ubuntu-latest
6792
needs: build

0 commit comments

Comments
 (0)