Skip to content
Snippets Groups Projects
.gitlab-ci.yml 642 B
Newer Older
default:
  image: node:10

before_script:
  - chmod 600 .drawing-app-deploy.rsa
  - git submodule sync --recursive
  - GIT_SSH_COMMAND='ssh -i .drawing-app-deploy.rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git submodule update --init
  - npm ci

stages:
  - source_check
  - build
  - test
check_format:
  stage: source_check
  script:
Nayeem Rahman's avatar
Nayeem Rahman committed
    - npx prettier --ignore-path .gitignore --check "**/*.{html,js,json,md}"

lint:
  stage: source_check
  script:
    - npx eslint --ignore-path .gitignore "**/*.js"
backend_build:
  stage: build
  script:
Nayeem Rahman's avatar
Nayeem Rahman committed
    - npm run build

backend_test:
  stage: test
  script:
    - npm test