build: Move CI to GitHub Actions (#1354)

This commit is contained in:
Daniel Wirtz 2020-02-04 05:21:38 +01:00 committed by GitHub
parent 5f2f62bcfd
commit 2ac09c73a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 15 deletions

35
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: "Test"
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: "Test"
runs-on: ubuntu-latest
strategy:
matrix:
node_version: ["4", "4.3.2", "6", "8", "10", "12"]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- name: "Install dependencies"
run: npm install
- name: "Run tests"
run: npm test
bench:
name: "Bench"
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "12"
- name: "Install dependencies"
run: npm install
- name: "Run benchmark"
run: npm run bench

View File

@ -1,15 +0,0 @@
dist: trusty
language: node_js
node_js:
- node
- lts/*
- 12
- 11
- 10
- 8
- 6
- 4.3.2
- 4
branches:
only: master
script: npm test && npm run bench