-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (63 loc) · 1.59 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: tests
on:
push:
branches:
- master
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
node-version: '18.20.4'
- run: npm install
- run: npm run lint
- run: npm run test:unit
- run: npm run test:benchmark
extension-test-windows:
# Run on windows because it provides a graphics server
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
node-version: '18.20.4'
- run: npm install
- name: Run lowest supported version
run: npm run test:vsc
env:
VSCODE_VERSION: "1.44.0"
- name: Run newish version
run: npm run test:vsc
env:
VSCODE_VERSION: "1.96.2"
extension-test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
node-version: '18.20.4'
- run: npm install
- name: Run lowest supported version
env:
VSCODE_VERSION: "1.44.0"
run: |
export DISPLAY=':99.0'
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
npm run test:vsc
- name: Run newish version
env:
VSCODE_VERSION: "1.96.2"
run: |
export DISPLAY=':99.0'
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
npm run test:vsc