-
-
Notifications
You must be signed in to change notification settings - Fork 53
42 lines (34 loc) · 1.06 KB
/
workflow.yml
File metadata and controls
42 lines (34 loc) · 1.06 KB
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
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@v4
- name: Install D compiler
uses: dlang-community/setup-dlang@v2
with:
compiler: dmd
- name: Start xvfb
if: startsWith(matrix.os, 'ubuntu')
run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: Set Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- 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