language: node_js
node_js:
  - "8"

install:
  - npm install -g typescript
  - npm install

before_script:
  - node -v
  - npm -v
  - tsc -v

stages:
  - test
  - build

jobs:
  include:
    - stage: test
      script: npm run lint && npm run prettier:check && npm run report
    - stage: build
      script: npm run build
language: node_js

node_js:
  - "8"

cache:
  directories:
    - node_modules

install:
  - npm install -g typescript
  - npm install

before_script:
  - node -v
  - npm -v
  - tsc -v

stages:
  - stylecheck
  - test
  - build

jobs:
  include:
    - stage: stylecheck
      script: npm run lint && npm run prettier:check
    - stage: test
      script: npm run report
    - stage: build
      script: npm run build
Move code style validation into its own stage. Cache the node_modules directory to speed up runs.
Move code style validation into its own stage. Cache the node_modules directory to speed up runs.
