From cd4ae1e69036b00f7ccd8515489e2a19865d467d Mon Sep 17 00:00:00 2001 From: shem-yu Date: Thu, 12 Mar 2026 10:32:51 +0900 Subject: [PATCH] ci: add GitHub Actions workflow for build, lint, and audit Adds a CI workflow that runs on push/PR to main. Checks: - Lint (eslint on src and webview-ui) - Build (type-check + esbuild + vite) - npm audit --audit-level=high (root and webview-ui) Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..e4445c8c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'npm' + + - name: Install root dependencies + run: npm ci + + - name: Install webview dependencies + run: npm ci + working-directory: webview-ui + + - name: Lint + run: npm run lint && npm run lint:webview + + - name: Build + run: npm run build + + - name: Audit root + run: npm audit --audit-level=high + + - name: Audit webview + run: npm audit --audit-level=high + working-directory: webview-ui