move tests to github actions

pull/3590/head
Conduitry 6 years ago
parent 3c5ccf6ee5
commit d4ea5d39b9

@ -0,0 +1,18 @@
name: CI
on: [push, pull_request]
jobs:
Tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [8, 10, 12]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: 'npm i && npm test'
env:
CI: true

@ -1,20 +0,0 @@
language: node_js
node_js:
- "8"
- "10"
- "12"
env:
global:
- BUILD_TIMEOUT=20000
addons:
apt:
packages:
- xvfb
install:
- export DISPLAY=':99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- npm ci || npm install
after_success: npm run codecov

@ -1,31 +0,0 @@
# http://www.appveyor.com/docs/appveyor-yml
version: "{build}"
clone_depth: 10
init:
- git config --global core.autocrlf false
environment:
matrix:
- nodejs_version: 8
- nodejs_version: 10
- nodejs_version: 12
install:
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
- npm ci || npm install
build: off
test_script:
- node --version && npm --version
- npm test
matrix:
fast_finish: false
# cache:
# - C:\Users\appveyor\AppData\Roaming\npm-cache -> package.json # npm cache
# - node_modules -> package.json # local npm modules
Loading…
Cancel
Save