From 039b8f7c62872bc3de17aafe26d198e354318ae6 Mon Sep 17 00:00:00 2001 From: simonguo Date: Sun, 4 Jan 2026 15:42:52 +0800 Subject: [PATCH 1/6] ci: add workflow for vscode tests --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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 0000000..cd80dea --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: + - main + - feature/** + - bugfix/** + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install dependencies + run: npm install + + - name: Run VS Code tests + run: xvfb-run --auto-servernum npm test From 9e937e15f758ad07a58b30e5a2d96d8f3a1b0abe Mon Sep 17 00:00:00 2001 From: simonguo Date: Sun, 4 Jan 2026 15:47:23 +0800 Subject: [PATCH 2/6] ci: run workflow via pnpm --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd80dea..057989b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,9 +20,15 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' + cache: 'pnpm' + + - name: Set up pnpm + uses: pnpm/action-setup@v3 + with: + version: 8 - name: Install dependencies - run: npm install + run: pnpm install - name: Run VS Code tests - run: xvfb-run --auto-servernum npm test + run: xvfb-run --auto-servernum pnpm test From 40b9f4a459d0b063e270a1035087b27a305faa88 Mon Sep 17 00:00:00 2001 From: simonguo Date: Sun, 4 Jan 2026 15:48:58 +0800 Subject: [PATCH 3/6] ci: ensure pnpm installed before setup-node --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 057989b..3515be2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,8 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: Set up pnpm + uses: pnpm/action-setup@v3 + with: + version: 8 - name: Set up Node.js uses: actions/setup-node@v4 @@ -22,10 +24,8 @@ jobs: node-version: '20' cache: 'pnpm' - - name: Set up pnpm - uses: pnpm/action-setup@v3 - with: - version: 8 + - name: Checkout repository + uses: actions/checkout@v4 - name: Install dependencies run: pnpm install From 9adb78a94a6f65ea12aa427281874fe8529668e2 Mon Sep 17 00:00:00 2001 From: simonguo Date: Sun, 4 Jan 2026 15:50:52 +0800 Subject: [PATCH 4/6] ci: checkout before setup-node to ensure lock file available --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3515be2..95de744 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,9 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up pnpm uses: pnpm/action-setup@v3 with: @@ -24,9 +27,6 @@ jobs: node-version: '20' cache: 'pnpm' - - name: Checkout repository - uses: actions/checkout@v4 - - name: Install dependencies run: pnpm install From de69b6262b37d98474043d5c34488fc088cc1d8e Mon Sep 17 00:00:00 2001 From: simonguo Date: Sun, 4 Jan 2026 15:54:49 +0800 Subject: [PATCH 5/6] ci: add debug step to verify test compilation --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95de744..c8e2b83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,5 +30,10 @@ jobs: - name: Install dependencies run: pnpm install + - name: Verify compiled test files + run: | + ls -la out/test/suite/ || echo "Test files not found" + find out/test -name "*.test.js" || echo "No test.js files" + - name: Run VS Code tests run: xvfb-run --auto-servernum pnpm test From 6b1ee43fc0bf9ea5357a40aaa209ee7712f47beb Mon Sep 17 00:00:00 2001 From: simonguo Date: Sun, 4 Jan 2026 15:56:49 +0800 Subject: [PATCH 6/6] ci: explicitly compile TypeScript before running tests --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8e2b83..cb6de00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,10 +30,13 @@ jobs: - name: Install dependencies run: pnpm install + - name: Compile TypeScript + run: pnpm run compile + - name: Verify compiled test files run: | - ls -la out/test/suite/ || echo "Test files not found" - find out/test -name "*.test.js" || echo "No test.js files" + ls -la out/test/suite/ + find out/test -name "*.test.js" - name: Run VS Code tests run: xvfb-run --auto-servernum pnpm test