Skip to content

Commit

Permalink
chore: add new github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhaenisch authored Aug 10, 2019
1 parent 46d2fe5 commit 4faf6e9
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Node CI

on: [push]

jobs:
build:
strategy:
matrix:
node: [ '8', '10' ]
os: ['ubuntu-latest', 'windows-latest', 'macOS-latest']

name: Node.js v{{ matrix.node }}.x on {{ matrix.os }}
runs-on: {{ matrix.os }}

steps:
- uses: actions/checkout@master

- name: Use Node.js {{ matrix.os }}.x
uses: actions/setup-node@v1
with:
version: {{ matrix.node }}.x

- name: install and lint
run: |
npm install
npx xo
- name: test lib
run: npx nyc --reporter=lcov ava test/lib.spec.js

- name: test api
run: npx ava test/api.spec.js

- name: test cli
run: npx ava test/cli.spec.js

0 comments on commit 4faf6e9

Please sign in to comment.