-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (29 loc) · 900 Bytes
/
dev.workflow.yml
File metadata and controls
32 lines (29 loc) · 900 Bytes
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
on: [push, pull_request]
name: Build + Test
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
node-version: [14.x]
name: ${{ matrix.os }} (Node.js ${{ matrix.node-version }})
steps:
- name: Checkout 🛎
uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node-version }} ⚙
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Run display server 🖥
run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb"
shell: bash
if: ${{ success() && matrix.os == 'ubuntu-latest' }}
- name: Install node_modules 📦
run: yarn
- name: Test + Build 🚀
run: |
npm test
npm run vscode:prepublish
env:
DISPLAY: ":99.0"