-
Notifications
You must be signed in to change notification settings - Fork 33
37 lines (35 loc) · 931 Bytes
/
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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, ubuntu-20.04, windows-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '14.17'
- name: Install dependencies
run: |
npm install
npm install -g vsce
- name: Build
run: |
npm run vscode:prepublish
vsce package
- name: Check
run: npm run lint
- name: Test Non-Linux
if: matrix.os != 'ubuntu-20.04'
run: npm test --silent
- name: Test Linux
if: matrix.os == 'ubuntu-20.04'
run: xvfb-run --auto-servernum npm test --silent
- name: Upload artifact
if: matrix.os == 'ubuntu-20.04'
uses: actions/upload-artifact@v2
with:
name: vscode-tlaplus-ci.vsix
path: ${{ github.workspace }}/vscode-tlaplus-*.vsix