language: node_js
node_js:
  - node

os:
  - linux

branches:
  only:
    - master

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

cache: yarn

install:
  - yarn install --frozen-lockfile

script:
  - yarn run format
  - yarn run lint
