forked from Pure-D/code-d
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 755 Bytes
/
workflow.yml
File metadata and controls
37 lines (30 loc) · 755 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
33
34
35
36
37
name: Test ci folder
on: [push]
jobs:
npm_test:
name: Run npm tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@master
- name: Start xvfb
if: startsWith(matrix.os, 'ubuntu')
run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: Set Node.js 10.x
uses: actions/setup-node@master
with:
version: 10.x
- name: npm install
run: npm install
- name: typescript
run: npx tsc
- name: npm test
env:
CODE_VERSION: ''
DISPLAY: ':99.0'
run: npm test
- name: test grammar
if: startsWith(matrix.os, 'ubuntu')
run: npm run grammar