name: CI on: pull_request: branches: [main] push: branches: [main] jobs: check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: "22" cache: "npm" - name: Install run: npm ci - name: Lint (Biome) run: npm run lint - name: Typecheck run: npm run typecheck - name: Knip run: npm run knip - name: Test (Vitest + Coverage) run: npm run test - name: Build (Vite → .user.js) run: npm run build - name: Upload artifact uses: actions/upload-artifact@v4 if: github.event_name == 'push' with: name: opencode-voice-dictation-user-js path: dist/*.user.js