add basic integration test framework #194
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |