From 52074d1ea24637e0faf01fb5809c042f8525ccff Mon Sep 17 00:00:00 2001 From: li1553770945 <1553770945@qq.com> Date: Sat, 14 Jun 2025 00:02:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 60 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..495ed6b --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,60 @@ +name: Build & Test VSCode Extension + +on: + push: + branches: + - main + release: + types: + - published + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22.x' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build monorepo + run: npm run build + + - name: Compile TypeScript + run: npx tsc + + - name: Package VSIX + run: npx vsce package --out dist/openmcp.vsix + + - name: Upload VSIX + uses: actions/upload-artifact@v4 + with: + name: openmcp-${{ matrix.os }} + path: dist/openmcp.vsix + + # test: + # needs: build + # runs-on: ubuntu-latest + # steps: + # - name: Checkout code + # uses: actions/checkout@v4 + + # - name: Setup Node.js + # uses: actions/setup-node@v4 + # with: + # node-version: '22.x' + # cache: 'npm' + + # - name: Install test dependencies + # run: npm install && npm run test \ No newline at end of file