Files
headlamp-sealed-secrets-plugin/.github/workflows/ci.yaml
T
Chris Farhood 4d99360694 fix: use array format for self-hosted runners at org level
Changed runs-on from 'local-ubuntu-latest' to '[self-hosted, local-ubuntu-latest]'
to properly match organization-level ARC runner scale sets.

For organization-level runners, GitHub Actions requires the self-hosted
label along with the runner scale set name.
2026-02-12 14:38:08 -05:00

58 lines
1.4 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-test:
runs-on: [self-hosted, 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: '20'
cache: 'npm'
cache-dependency-path: headlamp-sealed-secrets/package-lock.json
- name: Install dependencies
working-directory: ./headlamp-sealed-secrets
run: npm ci
- name: Type-check
working-directory: ./headlamp-sealed-secrets
run: npm run tsc
- name: Lint
working-directory: ./headlamp-sealed-secrets
run: npm run lint
- name: Build plugin
working-directory: ./headlamp-sealed-secrets
run: npx @kinvolk/headlamp-plugin build
- name: Verify build artifacts
working-directory: ./headlamp-sealed-secrets
run: |
if [ ! -d "dist" ] || [ -z "$(ls -A dist)" ]; then
echo "::error::dist directory is empty or missing"
exit 1
fi
echo "✓ Build artifacts verified"
ls -lh dist/
- name: Upload build artifact (for inspection)
uses: actions/upload-artifact@v4
if: always()
with:
name: plugin-dist
path: headlamp-sealed-secrets/dist/
retention-days: 7