forked from dotnet/vscode-csharp
-
Notifications
You must be signed in to change notification settings - Fork 10
57 lines (44 loc) · 1.23 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
name: OmniSharp-VSCode CI
on:
push:
branches: [ master, feature/** ]
pull_request:
branches: [ master, feature/** ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- name: Setup virtual display
run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: Install .NET Core 6.0 SDK
uses: actions/[email protected]
with:
dotnet-version: 6.0.x
- name: Install Node.js 15.x
uses: actions/setup-node@v1
with:
node-version: '15.x'
- name: Install dependencies
run: |
npm ci
npm i -g gulp
- name: Compile
run: npm run compile
- name: Build platform-neutral extension package
run: gulp 'vsix:release:package:platform-neutral'
- name: Run unit and integration tests
run: |
npm run test
npm run test:artifacts
env:
CODE_VERSION: 1.66.0
DISPLAY: :99.0
- name: Build platform-specific extension package
run: gulp 'vsix:release:package:platform-specific'
- name: Upload VSIX build artifact
uses: actions/upload-artifact@v2
with:
name: ci-extension-artifact
path: ./*.vsix