name: Test

on: [pull_request, push]

jobs:
  test:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1
      - name: npm install, lint and test
        run: |
          npm install
          npm run lint
          npm run test:coverage
