forked from Azure/azure-sdk-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.23 KB
/
tsp-client-tests.yml
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
56
57
name: tsp-client - Test
on:
push:
branches:
- main
pull_request:
paths:
- .github/workflows/tsp-client-tests.yml
- tools/tsp-client/**
jobs:
tsp-client:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18, 20]
exclude:
- os: ubuntu-latest
node-version: 20
- os: windows-latest
node-version: 18
runs-on: ${{ matrix.os }}
steps:
- if: runner.os == 'Windows'
run: git config --global core.longpaths true
shell: pwsh
- uses: actions/checkout@v4
with:
sparse-checkout: |
.github/workflows
tools/tsp-client
- name: Use Node ${{ matrix.node-version }}.x
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}.x
- run: npm ci
shell: pwsh
working-directory: tools/tsp-client
- run: npm ls -a
shell: pwsh
continue-on-error: true
working-directory: tools/tsp-client
- run: npm run build
shell: pwsh
working-directory: tools/tsp-client
- run: npm run test
shell: pwsh
working-directory: tools/tsp-client