-
Notifications
You must be signed in to change notification settings - Fork 39.4k
55 lines (45 loc) · 1.3 KB
/
chat-lib-package.yml
File metadata and controls
55 lines (45 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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: 22.x
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