19 lines
581 B
YAML
19 lines
581 B
YAML
name: Latest Grafana API compatibility check
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
compatibilitycheck:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
cache: 'yarn'
|
|
- name: Install dependencies
|
|
run: yarn install --immutable --prefer-offline
|
|
- name: Build plugin
|
|
run: yarn build
|
|
- name: Compatibility check
|
|
run: npx @grafana/levitate@latest is-compatible --path src/module.ts --target @grafana/data,@grafana/ui,@grafana/runtime
|