feat: add reusable CI and release workflows for Headlamp plugins

This commit is contained in:
hugh-hackman[bot]
2026-03-08 00:44:51 +00:00
parent 99012ddbbc
commit 521d120425
2 changed files with 181 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
name: Plugin CI
on:
workflow_call:
inputs:
node-version:
description: 'Node.js version to use'
required: false
type: string
default: '22'
jobs:
ci:
runs-on: local-ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build plugin
run: npx @kinvolk/headlamp-plugin build
- name: Lint
run: npm run lint
- name: Type-check
run: npm run tsc
- name: Format check
run: npm run format:check
- name: Run tests
run: npm test