default:
  image: node:lts

  cache:
    paths:
      - node_modules/

stages:
  - build
  # - test

build:
  stage: build
  except:
    - schedules
    - web
  before_script:
    - npm ci
  script:
    - rm -f .env
    - ln -s example.env .env
    - npm run build
#
# test:
#   stage: test
#   except:
#     - schedules
#     - web
#   before_script:
#     - npm ci
#   script:
#     - rm -f .env
#     - ln -s example.env .env
#     - npm run test