-
Notifications
You must be signed in to change notification settings - Fork 30
45 lines (35 loc) · 924 Bytes
/
linux.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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
linux:
name: Linux
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- name: Setup Build Environment
run: |
sudo apt-get update
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 libgbm1
sudo /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
sleep 3
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install Node.js modules
run: npm install
- name: Install VSCE
run: npm install -g vsce
- name: Linting
run: npm run tslint
- name: Compiling
run: npm run compile
- name: Build VSIX file
run: vsce package
- name: Test extension
run: DISPLAY=:99 npm test