Files
vscode/.github/workflows/chat-lib-package.yml
Robo 26129ae2c5 ci: restore chat pipeline to windows-latest (#321364)
* ci: restore chat pipeline to windows-latest

* chore: remove node-gyp override

* chore: restore node-gyp override with comment

* refactor: rm dependency on key:sqlite

The module locks the node-gyp dependency to 8.x due to
its transitive sqlite3 native module dependency this in turn
blocks using newer windows CI, refs https://github.com/microsoft/vscode/issues/321267

The module can be replaced with built-in sqlite support
from Node.js without losing the on-disk cache format has
already been committed.

* chore: restore minimist

* chore: set sqlite busy timeout

* fix: decode json-buffer values for keyv cache compat
2026-06-16 16:47:48 +09:00

56 lines
1.3 KiB
YAML

name: chat-lib tests
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: chat-lib-tests-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: chat-lib tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: extensions/copilot/.nvmrc
cache: npm
cache-dependency-path: |
extensions/copilot/package-lock.json
extensions/copilot/chat-lib/package-lock.json
- name: Extract chat-lib
shell: bash
working-directory: extensions/copilot
run: |
npm ci
npm run extract-chat-lib
rm -rf node_modules
- name: Install chat-lib dependencies
working-directory: extensions/copilot/chat-lib
run: npm ci
- name: Build chat-lib
working-directory: extensions/copilot/chat-lib
run: npm run build
- name: Test chat-lib
working-directory: extensions/copilot/chat-lib
run: npm test