-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 923 Bytes
/
validate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Plugin Validation
on:
workflow_call: # https://docs.github.com/en/actions/using-workflows/reusing-workflows
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install node modules
run: npm install
- run: npm run build
name: Build the plugin
- name: Zip the plugin
uses: montudor/action-zip@v1
with:
args: zip -qr felixrelleum-geomapwms-panel.zip felixrelleum-geomapwms-panel
- name: Run validator
run: npx --yes @grafana/plugin-validator@latest -sourceCodeUri file://. felixrelleum-geomapwms-panel.zip # https://github.com/grafana/plugin-validator
- name: Clean up
run: rm -r felixrelleum-geomapwms-panel.zip