Files
vscode/.github/workflows/chat-lib-package.yml
T
Dmitriy VasyuraandCopilot 5a67e0f1cc build: restrict PR workflows to main and release branches (#334835)
build: restrict PR workflow base branches

Run PR-only validation workflows only for changes targeting main or release branches, matching the existing Code OSS workflow behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-07 07:29:17 +00:00

59 lines
1.5 KiB
YAML

name: chat-lib tests
on:
pull_request:
branches:
- main
- 'release/*'
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
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