name: Node CI

on: [push, pull_request]

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: actions/setup-node@v1
      with:
        node-version: 10.x
    - name: Next.js Build
      run: |
        yarn install
        yarn run build
        
  linter:
    name: Lint
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: actions/setup-node@v1
      with:
        node-version: 10.x
        
    - name: ESLint
      run: |
        yarn install
        yarn run lint
        
  unit-tests:
    name: Unit Tests
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: actions/setup-node@v1
      with:
        node-version: 10.x

    - name: Jest
      env:
        CI: true
      run: |
        yarn install
        yarn run jest

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: Install
      run: yarn install
    - name: Next.js Build
      run: yarn build
    - name: ESLint
      run: yarn lint
    - name: Jest
      env:
        CI: true
      run: yarn jest
    - name: Check Format
      run: yarn check-format

Use steps instead of separate jobs
Use steps instead of separate jobs