-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.09 KB
/
vscode.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
name: VS Code extension CI
on:
push:
branches:
- master
#tags:
# - v1
# file paths to consider in the event. Optional; defaults to all.
#paths:
# - 'test/*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 3
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
node-version: [16]
steps:
# actions/checkout
# https://github.com/actions/checkout
- uses: actions/checkout@v3
# actions/setup-node
# https://github.com/actions/setup-node
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Start xvfb only if it's Linux
if: startsWith(matrix.os,'ubuntu')
run: |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
echo ">>> Started xvfb"
shell: bash
- name: npm install, build, and test
run: |
npm test
env:
DISPLAY: ':99.0' # Only necessary for linux tests