language: node_js
node_js:
  - 6.0.0
  - 7.0.0
  - 8.0.0
  - 10.0.0
  - 11.15.0
  - 12.0.0
  - 13.12.0
  - 14.0.0
  - 15
  - 16
before_install:
  - dpkg --compare-versions `npm -v` ge 5.8 || npm i -g npm@^5.8
install:
  - npm ci
cache:
  directories:
    - '$HOME/.npm'
after_success: npm run coverage
branches:
  only:
    - master
