-
Notifications
You must be signed in to change notification settings - Fork 17
46 lines (44 loc) · 1.15 KB
/
build.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: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout Branch
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Build Extension
run: |
npm install
npm run compile
- name: Smoke test (Linux)
run: xvfb-run -a npm run test
if: runner.os == 'Linux'
- name: Smoke test (Mac, Windows)
run: npm run test
if: runner.os != 'Linux'
- name: Package Extension
if: matrix.os == 'ubuntu-latest'
run: |
npm install -g vsce
vsce package
mkdir vsix
mv *.vsix vsix
- name: Archive Extension
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v1
with:
name: vsix
path: vsix