Skip to content

chore(linting): combobox, silence warnings #4827

chore(linting): combobox, silence warnings

chore(linting): combobox, silence warnings #4827

Workflow file for this run

name: Latest Grafana API compatibility check
on: [pull_request]
jobs:
compatibilitycheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Setup Node.js environment
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '24'
# Do not use cache: 'yarn' here - it runs `yarn cache dir` and fails with packageManager/yarn@4 before Corepack is enabled
- name: Enable Corepack
run: corepack enable
- name: Restore npm cache
id: restore-npm-cache
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/yarn.lock',
'!node_modules/**/yarn.lock') }}
restore-keys: ${{ runner.os }}-npm-
- name: Install dependencies
run: yarn install --immutable
- name: Save npm cache
id: save-npm-cache
if: steps.restore-npm-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
node_modules
key: ${{ steps.restore-npm-cache.outputs.cache-primary-key }}
- name: Build plugin
run: npm run build
- name: Find module.ts or module.tsx
id: find-module-ts
run: >-
MODULETS="$(find ./src -type f \( -name "module.ts" -o -name
"module.tsx" \))"
echo "modulets=${MODULETS}" >> $GITHUB_OUTPUT
- name: Compatibility check
uses: grafana/plugin-actions/is-compatible@main
with:
module: ${{ steps.find-module-ts.outputs.modulets }}
comment-pr: no
fail-if-incompatible: yes