name: CI

on:
  push:
    branches: [ master ]
  pull_request:

jobs:
  build:

    strategy:
      matrix:
        os: [ ubuntu-latest ]
        node-version:
          - '10'
          - '12'
          - '14'

    runs-on: ${{ matrix.os }}

    name: Node v${{ matrix.node-version }}

    steps:

    - uses: actions/checkout@v2

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

    - run: yarn install
    - run: yarn test
