#This declares the pipeline stages  
image: node:13.1

stages:
  - build
  - test
  - deploy
  
cache:
  paths:
  - node_modules/
  
build:
  stage: build
  script:
    - npm install
    - npm run-script build
  tags:
    - general
    
test:
  stage: test
  script:
    - echo "Running react test suite......"
  tags:
    - general
    
deploy:
  stage: deploy
  script:
    - echo 'Deploy'
  tags:
    - general

