name: CI on: push: branches: [main] pull_request: branches: [main] jobs: lint-and-test: 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: '20' cache: 'npm' - name: Install dependencies run: npm ci - name: Build plugin run: npx @kinvolk/headlamp-plugin build - name: Lint run: npx eslint --ext .ts,.tsx src/ - name: Type-check run: npx tsc --noEmit - name: Format check run: npx prettier --check src/ - name: Run unit tests run: npm test