-
Notifications
You must be signed in to change notification settings - Fork 12
48 lines (40 loc) · 1.02 KB
/
ci.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
name: CI
on:
push:
branches:
- main
paths:
- 'packages/language-server/**'
- 'packages/vscode/**'
pull_request:
paths:
- 'packages/language-server/**'
- 'packages/vscode/**'
jobs:
test:
name: Run tests
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
- name: Install Dependencies
run: npm install && npm run install:all
- name: Build packages
run: npm run build:vs && npm run build:ls && npm run build:cli
- name: Run Language Server tests
run: npm run test:ls
- name: Run VSCode extension tests
uses: GabrielBB/[email protected]
with:
run: npm run test:vs "useLocalLS"
- name: Run CLI tests
run: npm run test:cli