name: Node CI

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: actions/setup-node@v1
      with:
        node-version: 10.x
    - name: yarn install, build, and test
      run: |
        yarn install
        yarn run build
        yarn run lint --quiet
        yarn run jest
      env:
        CI: true

name: Node CI

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: actions/setup-node@v1
      with:
        node-version: 10.x
        
    - name: ESLint and annotate pull requests
      uses: gimenete/eslint-action@1.0
      if: github.event == 'pull_request'

    - name: yarn install, build, and test
      run: |
        yarn install
        yarn run lint --quiet
        yarn run build
        yarn run jest
      env:
        CI: true

Annotate PR's with ESLint errors
Annotate PR's with ESLint errors