dist: bionic
sudo: false

language: node_js

node_js:
  - "10.16.0"
  - "12.6.0"

cache: yarn

before_install:
  # Install the latest yarn version
  - curl -o- -L https://yarnpkg.com/install.sh | bash -s
  - export PATH="$HOME/.yarn/bin:$PATH"
  - yarn --version

install:
  - yarn install --frozen-lockfile

script:
  - yarn run test
  - yarn run lint
  - yarn run flow
  - yarn run smoke cjs 15.6.2
  - yarn run smoke esm 15.6.2
  - yarn run smoke cjs 16.7.0
  - yarn run smoke esm 16.7.0
  - yarn run smoke cjs latest
  - yarn run smoke esm latest
  - yarn run smoke cjs next
  - yarn run smoke esm next

dist: bionic
sudo: false

language: node_js

node_js:
  - "10.16.0"
  - "12.10.0"

cache: yarn

before_install:
  # Install the latest yarn version
  - curl -o- -L https://yarnpkg.com/install.sh | bash -s
  - export PATH="$HOME/.yarn/bin:$PATH"
  - yarn --version

install:
  - yarn install --frozen-lockfile

script:
  - yarn run test
  - yarn run lint
  - yarn run flow
  - yarn run smoke cjs 15.6.2
  - yarn run smoke esm 15.6.2
  - yarn run smoke cjs 16.7.0
  - yarn run smoke esm 16.7.0
  - yarn run smoke cjs latest
  - yarn run smoke esm latest
  - yarn run smoke cjs next
  - yarn run smoke esm next

Upgrade used node versions on CI
qa: Upgrade used node versions on CI
